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
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to