keshav123 / smart-lencioni-image-resizer

Automatically exported from code.google.com/p/smart-lencioni-image-resizer
GNU General Public License v3.0
0 stars 0 forks source link

sharpening #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Resizing
2.
3.

What is the expected output? What do you see instead?
The image has some white areas. when resizing the image to 50% and below, the 
white areas have some greyish stripes.

What version of the product are you using? On what operating system?
SLIR 2.0b4, Linux Linux infong 2.4 #1 SMP, GD bundled (2.0.34 compatible)

Please provide any additional information below.
original image:
http://jensbuss.com/clients/slir/4-2.jpg
resized:
http://jensbuss.com/clients/slir/4.jpg

if you look closely you can see some grey stripes on the left side inside the 
white area.
they start to appear, when the image gets scaled close to 50%
http://jensbuss.com/clients/slir/4-3.jpg

i tried around a litte and found that the isses appears during the sharpening. 
if i comment out the line 456
//$this->rendered->sharpen($this->calculateSharpnessFactor());
the stripes dissapear.
http://jensbuss.com/clients/slir/4-1.jpg

i then watched the imgs a bit closer and i really think, that the sharpening 
like it is right now, is too much. 
i think a good enhancement would be, if you could control sharpening via the 
url as well..
/slir/w600-s0/image.xy
would turn sharpening off.

or maybe some precentual value like
/slir/w600-s50/image.xy
would sharpen the image by 50%.

Original issue reported on code.google.com by jnz...@gmail.com on 18 Feb 2011 at 11:12