Make images crappier via imagemagick.

This commit is contained in:
Netscape Navigator 2019-11-17 14:11:10 -06:00
parent 2135f68110
commit 3b0ef5163b
10 changed files with 6 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 824 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 448 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 KiB

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 271 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 407 KiB

After

Width:  |  Height:  |  Size: 278 KiB

View File

@ -1,6 +1,6 @@
<center>
<font color="#008080" size="7">
The Helm
【Netscape Navigator™】
</font>
<p>
<font color="#008080" size="3">

View File

@ -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