pThumb icon indicating copy to clipboard operation
pThumb copied to clipboard

Progressive JPEG Support

Open ghost opened this issue 6 years ago • 11 comments

I ran into a small aesthetic issue, I was wondering if it was possible to add support for progressive jpeg output.

I'm using a lazyloading image pattern that uses a super condensed version of the image with a blur effect on it, and then loads into the actual image. Using pthumb has been working great for that, except that all of my progressive jpegs get turned into regular jpegs. The loading effect of the whole image loading like a printed ruins the whole effect.

Doing a small amount of research it looks like Imagine found a way to implement this here, I'm not well versed in PHP, so I wasn't really able to understand what exactly was going on in there.

Is this something that is possible to add?

ghost avatar Sep 13 '19 17:09 ghost

Currently working on an update to Resizer. Should work with the 0.7.1 version of Imagine. What is your availability to help test? Thanks !

sepiariver avatar Sep 13 '19 17:09 sepiariver

Oh nice! I don't have any projects currently that I can do testing on, but depending on when the test build is available, I might be able to use it later this month?

ghost avatar Sep 13 '19 17:09 ghost

A new version of Resizer has been released that should handle this issue, if the Imagine library does what it says in the changelog.

sepiariver avatar Sep 15 '19 01:09 sepiariver

great! Does that make it available to pthumb output filter/snippet, or will I have to make my own output filter?

ghost avatar Sep 16 '19 15:09 ghost

Please see https://sepiariver.com/modx/resizer-update/

Update Resizer in Extras :)

sepiariver avatar Sep 16 '19 15:09 sepiariver

I updated it as soon as I saw the email this morning :), I guess my question was more if I use [[*image:pthumb=^options^]] will there be an option there to take advantage of the interlacing? I skimmed through the options for Resizer and could find anything similar, I can also move this over to the resizer repo

ghost avatar Sep 16 '19 15:09 ghost

Oh darn I didn’t realize it had to be exposed as an option. I’ve yet to even touch pThumb at all. My approach was to try to modernize the lower layers first.

sepiariver avatar Sep 17 '19 01:09 sepiariver

Oh no worries! I seriously appreciate the modernization focus though

ghost avatar Sep 17 '19 12:09 ghost

Despite what it says in the blog post, I’m currently working on getting Reductionist to Imagine 1.2.2 (found an approach that seems to work). Then will work back up the chain through Resizer to pThumb.

sepiariver avatar Sep 17 '19 14:09 sepiariver

Cool! Can't wait to see the outcome. Thanks for all the hard work you're putting into this project :)

ghost avatar Sep 17 '19 14:09 ghost

had an account issue, and needed to start over so just retagging myself

excelerondesign avatar Dec 03 '19 20:12 excelerondesign