[DUG] Handling Jpgs

Rob van der Linde robvdl at paradise.net.nz
Tue Jul 11 10:14:29 NZST 2006


Isn't it the case that when you load the JPEG you have to uncompress it 
anyway regardless, then resize the image (preferably in RAM) and then 
when you resave, recompressing it again? That's how I would do it anyway...

I would first load the JPEG in RAM using standard built in JPEG loading 
routines from Delphi, then use the graphics32 package (Open Source) to 
scale the bitmap, because it provides nice smooth resampling methods, 
rather than uglier nearest-neighbour  resizing found in StretchDraw. I 
would then resave the scaled JPEG.

http://www.graphics32.org/wiki/

Neven MacEwan wrote:
> Hi
>
> Can anyone recommend a free library for resizing jpgs without 
> converting them to bmps
>
> Thanks
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>   


More information about the Delphi mailing list