btobolaski / jekyll-retinamagick

MiniMagick integration for Jekyll
2 stars 2 forks source link

@2x images seem to be upscaled versions of their smaller sized thumbnails #4

Closed Anoesj closed 9 years ago

Anoesj commented 9 years ago

Hey!

First of all: I'm not good with Ruby, I guess I seriously just made a lucky guess with this. I noticed that the 2x versions of images were really pixelated and ugly so I dived into your code and found out that changing this line:

@commands[:resize] = "#{Integer(width) * 2}x#{Integer(height) * 2}"

...into this:

@commands["resize"] = "#{Integer(width) * 2}x#{Integer(height) * 2}"

...fixes the problem and actually renders the 2x versions the way you would expect them to look.

Cheers, Anoesj

btobolaski commented 9 years ago

Hmm... That is an interesting find. I wouldn't have expected that to make a difference.