-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progressive jpegs aka. interlace true or -interlace plane #314
Comments
Okay, I realized that first of all, I did not read the docs thoroughly enough. I did not use I pretty much copypasted some options to there and now the
The issue however seems to be that the options here do not seem to accept these options at all. But After the Jekyll render has finished, I have bunch of jpeg images which I can just find with basic bash script and call imagemagic separately for each. It won't be pretty but it will work. My immediate problem is solved for now so all that remains here is a small feature wish of having progressive jpeg support built in to jekyll_picture_tag, or if it exists already, some pointer to docs how could I begin using that. Thank you for this awesome plugin! |
For anybody else wishing for this feature, my workaround/hack goes as follows: Set jekyll_picture_tag export quality to max, so that we wouldn't lose that much quality: _data/picture.yml
Place this script to _plugins/convert-img.sh
Then, by adding this to the _plugins directory too: _plugins/convert-img.rb
That basically registers it as a jekyll plugin which executes after the whole site has been written. And as a result, the jekyll build command should convert all jekyll_picture_tag images into progressive ones, but skip the originals. Not a clean solution and it completely trashes all the image conversion optimizations made to the conversion libraries by converting twice. Let's forget time complexity and just say that it definitely works. |
Hello!
Is it possible to generate progressive jpgs with this library? I did not find any directions in docs or in other git issues here.
According to the libvips git issues, that library supports those with option
interlace: true
which I tried to set inimage_options
, but that did not work.This is what I tried:
The Jekyll conversion process shows me this:
WARNING: The convert command is deprecated in IMv7, use "magick"
which suggests me that the library is actually using imagemagic instead of the libvips. If the conversion is using imagemagic, I'd assume the option should be-interlace Plane
instead, or something yaml formattable, I do not know what.I tried this:
My assumption of being able to use some custom options probably documented somehow in some upstream library would get me proper custom options and a collection of progressive jpg:s as a result, but I'm not sure about that. I tried to understand the code, it looks like the
image_options
would be a way to provide custom options to the underlying libvips or imagemagic libraries.It is my first time trying Jekyll and I have not touched Ruby that many times before so my assumption of this kind of an custom option might be very wrong.
Regardless of what I have so far tried in those
image_options
I still get pictures, but according to some random website, the results are not progressive jpgs. But honestly I'd be surprised if it would have been this easy.The reason I'm looking such option is that I'm expecting that my upcoming blog readers would often have very poor internet - because I often have in my area, so I expect that progressive jpg would bring quite some value to the reader experience.
The text was updated successfully, but these errors were encountered: