khashnan / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Image Upsizing #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, I see that there has been some discussion of this "issue" before. When 
an image smaller than the set dimensions is uploaded, it will resize the image, 
which results in pixelated images. I read about the removal of a block of code 
from r70 to r71. I added that code back in, and it doesn't do what I would 
like. Which makes sense, because it appears to treat the width and height 
separately, removing the idea of it keeping images in scale. Is there any kind 
of "hack" to have it not enlarge images and keep everything to scale?
Thanks,
-Tim

Original issue reported on code.google.com by tim%dual...@gtempaccount.com on 1 Sep 2010 at 5:42

GoogleCodeExporter commented 8 years ago
I don't understand the problem. Can you please show me an example of what you 
are seeing, and what you expect to see?

Original comment by BinaryMoon on 27 Sep 2010 at 3:08

GoogleCodeExporter commented 8 years ago
Yes.. I have the same problem.
When my users upload smaller picture, for example 300x300 px
My script which have  for example w=900&h=900, enlarge this image, and make it 
very pixelated.

Anybody solve this problem for not enlarging original picture? just reducing.. 

Original comment by markora...@gmail.com on 24 Jan 2011 at 11:27

GoogleCodeExporter commented 8 years ago
There's no way to solve this issue. Scaling an image up will always make it 
look worse than shrinking it down. The issue with enlarging images is to do 
with GD and how they do resizing. I have already enabled resampling which 
should smooth things out but it doesn't seem to have made any difference :(

Original comment by BinaryMoon on 24 Jan 2011 at 1:49