Jump to content

jrtderonde
 Share

Recommended Posts

Hey,

I was wondering if there is an alternative to the default Processwire ImageSizer. Although it comes in really, really handy (I have actually never used any Content Management Framework that comes with a default Resize module) I am not quite content when it comes to resizing large images.

Check this image:

http://imgur.com/KNS9VWB

You can clearly see a difference in sharpness of both images, after resizing the image comes out a bit blurry (Yes, quality is on 100).  Has anybody else encountered this? If so, is there any good alternative (in form of a Module). 

Much love to anyone that's willing to help <3

Link to comment
Share on other sites

Did you try different sharpening settings? Also that's not really a issue with processwire's imagesizer class, as the actual resizing is always done by external image processing libraries like gd or since 3.0 also imagemagick.

  • Like 2
Link to comment
Share on other sites

I can see! :)

You should read a bit about the images and our ImageSizer in the docs. What you are currently missing is, how to avoid the images caching. Add "forceNew" => true to your options array while developing. Otherwise you always will get the previously created and cached variation.

If you want to compare different options in one go, you also should read a bit about the suffix property.

:)

  • Like 2
Link to comment
Share on other sites

Thank you for the response Horst.

I looked into the documentation, yet I didn't find anything concerning sharpening of images. That's why I came here to ask. I will mask this as solved. But could you please be so kind to link me the page in which the sharpening topic is covered? Thank you in advance.

Regards,

Jim

  • Like 1
Link to comment
Share on other sites

Hi Jim,

you are right, in the older documentation, there is only the older basic image handling described, but for most of it, you can switch to the new Docs, lately introduced with PW 3 branch, also if you use PW 2.6 / Pw 2.7

Here you go:

https://processwire.com/api/ref/pageimage/

https://processwire.com/api/ref/pageimage/size/

https://processwire.com/api/ref/pageimage/suffix/

...

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...