Jump to content

Blur issue on image upload


onjegolders
 Share

Recommended Posts

Hey guys, having a few issues today uploading images in the admin (2.4) and the thumbnails are coming back blurred. These images aren't being upscaled.

Very strange, not had this issue before. GD appears to be installed fine. Anyone had anything similar recently?

Cheers,

Link to comment
Share on other sites

Just installed Thumbnails module. Although I am not really sure the code for this cropped image 'thumbnail' is good in the template (looking at the colors presented in sublime) But I did get thumbnails back with this code: src='{$child->image->getThumb('thumbnail')}' In the module description it said image->(qe)....etc. Which one is correct?

And, is there a native PW way of making cropped images, without a module?

Then I also got back blurred images... I followed the link to ImageSizer.USM.php - but I have no clue what to do with it. Include it? Install it somehow?

Link to comment
Share on other sites

The eq (if that's what you mean by qe) you are referring to is like first(), last(), eq(n). It will get the number of the image in order starting with 0. If the image field is set to Max 1 then you won't need this. Anything else and it's an array and so you need to specify which image.

I would imagine you need to replace the existing ImageSizer.php with the code in the revised one that horst posted. In wire/core.

Link to comment
Share on other sites

Okay, thanks for explaining that.

For the file from Horst, if possible I'd rather stay out of PW core (updating PW might overwrite this file again) - or is Ryan considering this to be integrated in future?

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