Skip to content
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

Is it possible to somehow avoid blurring the photo when resize? #172

Open
saschati opened this issue May 10, 2021 · 2 comments
Open

Is it possible to somehow avoid blurring the photo when resize? #172

saschati opened this issue May 10, 2021 · 2 comments

Comments

@saschati
Copy link

When I resize a photo to thumbnails below 150 pixels, with 100 quality, the photo still becomes very soapy, I can't understand what it's about (sorry in advance I don't quite understand how resize in a box).

I scaled the photo so that I could clearly see the admiration of the photo:
The original is scaled to 85x85 - https://i.imgur.com/o5wIhJx.png
Resize version 85x85 - https://i.imgur.com/2hJiYzc.png
They are in a pile next to each other - https://i.imgur.com/EkhxWu3.png

I apologize in advance, I do not know how to competently demonstrate the problem in the photo because it is visible only in small miniatures, if you take the larger size of human eyes, nothing is noticeable, well, at least to me)

@peter279k
Copy link
Contributor

peter279k commented May 10, 2021

Sorry. It seems that these two pictures are the same closely and I don't what the current issue is.

About blurring, I think the quality will be decreased when doing resizing with GD.

If you don't want to lose image quality, do you try to set $quality to be 100 when calling save method?

And it seems that you've done for setting 100 quality now and It's about the internal GD issue in PHP.

@adityapatadia
Copy link
Contributor

@saschati could you resolve this by any means?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants