Make images crappier via imagemagick.
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 824 KiB |
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 448 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 544 KiB After Width: | Height: | Size: 248 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 271 KiB |
Before Width: | Height: | Size: 407 KiB After Width: | Height: | Size: 278 KiB |
|
@ -1,6 +1,6 @@
|
|||
<center>
|
||||
<font color="#008080" size="7">
|
||||
The Helm
|
||||
【Netscape Navigator™】
|
||||
</font>
|
||||
<p>
|
||||
<font color="#008080" size="3">
|
||||
|
|
|
@ -41,7 +41,11 @@ posts.map do |post|
|
|||
url = BLOB_URL % [hash, type]
|
||||
extension = type.split("/").last
|
||||
path = BLOB_PATH % [b64, extension]
|
||||
File.write(path, open(url).read) unless File.file?(path)
|
||||
unless File.file?(path)
|
||||
File.write(path, open(url).read)
|
||||
`convert #{path} +dither -remap netscape: #{path}`
|
||||
`convert #{path} -resize 640 #{path}`
|
||||
end
|
||||
content.gsub!(hash, path.gsub("source/", "http://tilde.town/~netscape_navigator/"))
|
||||
end
|
||||
end
|
||||
|
|