I think the real problem here is that your original image was probably made using Layers in Photoshop etc, and saved as PNG.<div>to get the same quality you need the Layered source so that antialiasing is done properly when shrunk and then saved again. There is no realy way to correct this issue when shrinking the end result.<br>
<br><div class="gmail_quote">On Tue, Jan 19, 2010 at 12:13 PM, John Bird <span dir="ltr"><<a href="mailto:johnkbird@paradise.net.nz">johnkbird@paradise.net.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Here is an example.....shows the original larger image and the resized one.<br>
You can see the ragged border when the image is on a darker background, as<br>
the offending pixels are not the same as the transparent colour of the rest<br>
of the square image out to the edges - they have been altered in colour by<br>
the resizing. Hope I am making sense.<br>
<br>
The original image was a png, and it has been resized then converted to BMP<br>
using Irfanview. As far as I recall I didn't use the Lanczos option, just<br>
the defaults.<br>
<br>
<a href="http://sites.google.com/site/jbclnz2/delphistuff/delphimiscissues" target="_blank">http://sites.google.com/site/jbclnz2/delphistuff/delphimiscissues</a><br>
<font color="#888888"><br>
John<br>
</font><div><div></div><div class="h5"><br>
----- Original Message -----<br>
From: "Conor Boyd" <<a href="mailto:Conor.Boyd@trimble.co.nz">Conor.Boyd@trimble.co.nz</a>><br>
To: "NZ Borland Developers Group - Delphi List" <<a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>><br>
Sent: Tuesday, January 19, 2010 11:31 AM<br>
Subject: Re: [DUG] Resizing images<br>
<br>
<br>
> What I think you're seeing (without seeing your example) is the softness<br>
> introduced by most resampling algorithms (when used for downsampling).<br>
><br>
> Something like Bicubic Sharper in PS or Lanczos Kernel in Irfanview<br>
> might help.<br>
><br>
> However, most of these sharpening algorithms probably work better on<br>
> photographic images than they will on graphics. Maybe a more "dumb"<br>
> program like Paint would resample a graphic better. Or reducing the<br>
> color depth of the image before resizing will also help.<br>
><br>
> Post an example, and I'll see what I would do with it.<br>
><br>
> C.<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:delphi-bounces@delphi.org.nz">delphi-bounces@delphi.org.nz</a> [mailto:<a href="mailto:delphi-bounces@delphi.org.nz">delphi-bounces@delphi.org.nz</a>]<br>
> On Behalf Of John Bird<br>
> Sent: Tuesday, 19 January 2010 11:15 a.m.<br>
> To: NZ Borland Developers Group - Delphi List<br>
> Subject: Re: [DUG] Resizing images<br>
><br>
> More specifically - does the GIMP or any other resizing method allow me<br>
> to specify this?:<br>
><br>
> Where say an image with a a white background (the transparent colour)<br>
> meets a grey border, and the image is resized (especially if resized<br>
> smaller), there will be on this edge a new pixel that has part of the<br>
> grey border and<br>
> the white background. Most resizing operations will change the pixel<br>
> to<br>
> light grey/cream whereas I want to tell it to either use the original<br>
> grey or the white background only for any pixels on the edge.<br>
><br>
> John<br>
><br>
>> The GiMP is always handy for image manipulation. Generally I draw my<br>
>> images in a really old version of Corel Draw, then use GiMP for<br>
>> transparance, shadows and so on.<br>
>><br>
><br>
><br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
> Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject:<br>
> unsubscribe<br>
><br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
> Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject:<br>
> unsubscribe<br>
<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Kyley Harris<br>Harris Software<br>+64-21-671-821<br>
</div>