[DUG] Resizing images

Ayers, Stephen Stephen.Ayers at nz.Fujitsu.com
Tue Jan 19 12:42:57 NZDT 2010


Have you tried the office picture manager.  I just took a screen capture
of that link and saved it as a png and then resized that png in Office
picture manager(comes with Office) and it looks fine.  Could you provide
a link to the image without the background?




Steve Ayers
Analyst Programmer


Please consider the environment before printing this email
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of delphi-request at delphi.org.nz
Sent: Tuesday, 19 January 2010 12:25 PM
To: delphi at delphi.org.nz
Subject: Delphi Digest, Vol 75, Issue 32

Send Delphi mailing list submissions to
	delphi at delphi.org.nz

To subscribe or unsubscribe via the World Wide Web, visit
	http://listserver.123.net.nz/mailman/listinfo/delphi
or, via email, send a message with subject or body 'help' to
	delphi-request at delphi.org.nz

You can reach the person managing the list at
	delphi-owner at delphi.org.nz

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Delphi digest..."


Today's Topics:

   1. Re: Resizing images (John Bird)
   2. Re: Resizing images (Kyley Harris)
   3. Re: Offtopic - but.... (John Bird)
   4. Re: Resizing images (Conor Boyd)


----------------------------------------------------------------------

Message: 1
Date: Tue, 19 Jan 2010 12:13:29 +1300
From: "John Bird" <johnkbird at paradise.net.nz>
Subject: Re: [DUG] Resizing images
To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
Message-ID: <6712950CC08D41DEA38E4635300851F4 at JohnSony2>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
	reply-type=original

Here is an example.....shows the original larger image and the resized
one. 
You can see the ragged border when the image is on a darker background,
as 
the offending pixels are not the same as the transparent colour of the
rest 
of the square image out to the edges - they have been altered in colour
by 
the resizing.   Hope I am making sense.

The original image was a png, and it has been resized then converted to
BMP 
using Irfanview. As far as I recall I didn't use the Lanczos option,
just 
the defaults.

http://sites.google.com/site/jbclnz2/delphistuff/delphimiscissues

John

----- Original Message ----- 
From: "Conor Boyd" <Conor.Boyd at trimble.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
Sent: Tuesday, January 19, 2010 11:31 AM
Subject: Re: [DUG] Resizing images


> What I think you're seeing (without seeing your example) is the
softness
> introduced by most resampling algorithms (when used for downsampling).
>
> Something like Bicubic Sharper in PS or Lanczos Kernel in Irfanview
> might help.
>
> However, most of these sharpening algorithms probably work better on
> photographic images than they will on graphics.  Maybe a more "dumb"
> program like Paint would resample a graphic better.  Or reducing the
> color depth of the image before resizing will also help.
>
> Post an example, and I'll see what I would do with it.
>
> C.
>
> -----Original Message-----
> From: delphi-bounces at delphi.org.nz
[mailto:delphi-bounces at delphi.org.nz]
> On Behalf Of John Bird
> Sent: Tuesday, 19 January 2010 11:15 a.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Resizing images
>
> More specifically - does the GIMP or any other resizing method allow
me
> to specify this?:
>
> Where say an image with a a white background (the transparent colour)
> meets a grey border, and the image is resized (especially if resized
> smaller), there will be on this edge a new pixel that has part of the
> grey border and
> the white background.   Most resizing operations will change the pixel
> to
> light grey/cream whereas I want to tell it to either use the original
> grey or the white background only for any pixels on the edge.
>
> John
>
>> The GiMP is always handy for image manipulation.  Generally I draw my
>> images in a really old version of Corel Draw, then use GiMP for
>> transparance, shadows and so on.
>>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject:
> unsubscribe
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject: 
> unsubscribe 




------------------------------

Message: 2
Date: Tue, 19 Jan 2010 12:17:08 +1300
From: Kyley Harris <Kyley at harrissoftware.com>
Subject: Re: [DUG] Resizing images
To: NZ Borland Developers Group - Delphi List <delphi at delphi.org.nz>
Message-ID:
	<6f7834061001181517l7a8e22e5j69b5a9ae683d0813 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I think the real problem here is that your original image was probably
made
using Layers in Photoshop etc, and saved as PNG.
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.

On Tue, Jan 19, 2010 at 12:13 PM, John Bird
<johnkbird at paradise.net.nz>wrote:

> Here is an example.....shows the original larger image and the resized
one.
> You can see the ragged border when the image is on a darker
background,  as
> the offending pixels are not the same as the transparent colour of the
rest
> of the square image out to the edges - they have been altered in
colour by
> the resizing.   Hope I am making sense.
>
> The original image was a png, and it has been resized then converted
to BMP
> using Irfanview. As far as I recall I didn't use the Lanczos option,
just
> the defaults.
>
> http://sites.google.com/site/jbclnz2/delphistuff/delphimiscissues
>
> John
>
> ----- Original Message -----
> From: "Conor Boyd" <Conor.Boyd at trimble.co.nz>
> To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
> Sent: Tuesday, January 19, 2010 11:31 AM
> Subject: Re: [DUG] Resizing images
>
>
> > What I think you're seeing (without seeing your example) is the
softness
> > introduced by most resampling algorithms (when used for
downsampling).
> >
> > Something like Bicubic Sharper in PS or Lanczos Kernel in Irfanview
> > might help.
> >
> > However, most of these sharpening algorithms probably work better on
> > photographic images than they will on graphics.  Maybe a more "dumb"
> > program like Paint would resample a graphic better.  Or reducing the
> > color depth of the image before resizing will also help.
> >
> > Post an example, and I'll see what I would do with it.
> >
> > C.
> >
> > -----Original Message-----
> > From: delphi-bounces at delphi.org.nz
[mailto:delphi-bounces at delphi.org.nz]
> > On Behalf Of John Bird
> > Sent: Tuesday, 19 January 2010 11:15 a.m.
> > To: NZ Borland Developers Group - Delphi List
> > Subject: Re: [DUG] Resizing images
> >
> > More specifically - does the GIMP or any other resizing method allow
me
> > to specify this?:
> >
> > Where say an image with a a white background (the transparent
colour)
> > meets a grey border, and the image is resized (especially if resized
> > smaller), there will be on this edge a new pixel that has part of
the
> > grey border and
> > the white background.   Most resizing operations will change the
pixel
> > to
> > light grey/cream whereas I want to tell it to either use the
original
> > grey or the white background only for any pixels on the edge.
> >
> > John
> >
> >> The GiMP is always handy for image manipulation.  Generally I draw
my
> >> images in a really old version of Corel Draw, then use GiMP for
> >> transparance, shadows and so on.
> >>
> >
> >
> > _______________________________________________
> > NZ Borland Developers Group - Delphi mailing list
> > Post: delphi at delphi.org.nz
> > Admin: http://delphi.org.nz/mailman/listinfo/delphi
> > Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject:
> > unsubscribe
> >
> > _______________________________________________
> > NZ Borland Developers Group - Delphi mailing list
> > Post: delphi at delphi.org.nz
> > Admin: http://delphi.org.nz/mailman/listinfo/delphi
> > Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject:
> > unsubscribe
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject:
> unsubscribe
>



-- 
Kyley Harris
Harris Software
+64-21-671-821
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://listserver.123.net.nz/pipermail/delphi/attachments/20100119/cfd0c
cdb/attachment-0001.html 

------------------------------

Message: 3
Date: Tue, 19 Jan 2010 12:23:57 +1300
From: "John Bird" <johnkbird at paradise.net.nz>
Subject: Re: [DUG] Offtopic - but....
To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
Message-ID: <004028015AAC4A3CA27EE2E49E6EE5D8 at JohnSony2>
Content-Type: text/plain; charset="iso-8859-1"

Firefox does use more ram over time - restart it and you will find the
memory use dives.   Its not all Firefox's fault - some is memory leaks,
but most is from Flash and other plugins, so other browsers will do the
same.

Hint later versions are usually better at using less memory! So check
your version

Each version gets tighter on memory usage, for instance I have had 67
tabs open for about a day and Firefox is using 380MB memory.  I am
running the 3.7 nightly alpha build too (ie the latest bleeding edge) -
I have been following issues like this on the Firefox development
newsgroup.

Chrome also can have similar issues, largely as it uses separate
processes for each tab and this increases memory usage too.

John

  I know thi sis offtopic, but does anyone know WHY FireFox consumse SO
MUCH RAM ??
  I have 8 tabs open and its usign over 400MB !!  Its complete madness !
I have started going off Firefox lately. On ym Vista 64bit install at
home, I cant do an F5 to refresh, I have to do a CTRL+F5 .....  grrr


  Jeremy



------------------------------------------------------------------------
------


  _______________________________________________
  NZ Borland Developers Group - Delphi mailing list
  Post: delphi at delphi.org.nz
  Admin: http://delphi.org.nz/mailman/listinfo/delphi
  Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://listserver.123.net.nz/pipermail/delphi/attachments/20100119/2e7fe
d9d/attachment-0001.html 

------------------------------

Message: 4
Date: Tue, 19 Jan 2010 12:31:09 +1300
From: "Conor Boyd" <Conor.Boyd at trimble.co.nz>
Subject: Re: [DUG] Resizing images
To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
Message-ID:
	
<F7C0AA5DD1508F4789E10B6CC9BB75DB03010603 at nzc-ap-xch-02.ap.trimblecorp.n
et>
	
Content-Type: text/plain;	charset="us-ascii"

What I have just tried is this:

Open your double image in Irfanview.
Crop it to the left hand image.
Open the Resize/Resample dialog.
Choose to resize it in half.
Choose to "Apply Sharpen after resample".
Choose to Resample using Lanczos Kernel.

Voila, it looks pretty good to me.

The main point here is probably resampling, not resizing.

C.

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of John Bird
Sent: Tuesday, 19 January 2010 12:13 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Resizing images

Here is an example.....shows the original larger image and the resized
one. 
You can see the ragged border when the image is on a darker background,
as the offending pixels are not the same as the transparent colour of
the rest of the square image out to the edges - they have been altered
in colour by 
the resizing.   Hope I am making sense.

The original image was a png, and it has been resized then converted to
BMP using Irfanview. As far as I recall I didn't use the Lanczos option,
just the defaults.

http://sites.google.com/site/jbclnz2/delphistuff/delphimiscissues

John

----- Original Message -----
From: "Conor Boyd" <Conor.Boyd at trimble.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>
Sent: Tuesday, January 19, 2010 11:31 AM
Subject: Re: [DUG] Resizing images


> What I think you're seeing (without seeing your example) is the
softness
> introduced by most resampling algorithms (when used for downsampling).
>
> Something like Bicubic Sharper in PS or Lanczos Kernel in Irfanview
> might help.
>
> However, most of these sharpening algorithms probably work better on
> photographic images than they will on graphics.  Maybe a more "dumb"
> program like Paint would resample a graphic better.  Or reducing the
> color depth of the image before resizing will also help.
>
> Post an example, and I'll see what I would do with it.
>
> C.
>
> -----Original Message-----
> From: delphi-bounces at delphi.org.nz
[mailto:delphi-bounces at delphi.org.nz]
> On Behalf Of John Bird
> Sent: Tuesday, 19 January 2010 11:15 a.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Resizing images
>
> More specifically - does the GIMP or any other resizing method allow
me
> to specify this?:
>
> Where say an image with a a white background (the transparent colour)
> meets a grey border, and the image is resized (especially if resized
> smaller), there will be on this edge a new pixel that has part of the
> grey border and
> the white background.   Most resizing operations will change the pixel
> to
> light grey/cream whereas I want to tell it to either use the original
> grey or the white background only for any pixels on the edge.
>
> John
>
>> The GiMP is always handy for image manipulation.  Generally I draw my
>> images in a really old version of Corel Draw, then use GiMP for
>> transparance, shadows and so on.
>>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject:
> unsubscribe
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with
Subject: 
> unsubscribe 


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe



------------------------------

_______________________________________________
Delphi mailing list
Delphi at delphi.org.nz
http://listserver.123.net.nz/mailman/listinfo/delphi

End of Delphi Digest, Vol 75, Issue 32
**************************************
The information contained in this email is privileged and confidential and
intended for the addressee only. If you are not the intended recipient, you
are asked to respect that confidentiality and not disclose, copy or make use
of its contents. If received in error you are asked to destroy this email
and contact the sender immediately. Your assistance is appreciated.



More information about the Delphi mailing list