Link to home
Start Free TrialLog in
Avatar of acdesigns
acdesigns

asked on

Image Resizing without image quality loss

One of my clients is currently using LWP:UserAgent to fetch HTML from another site.  He's having a problem because the image is too large for his site.  When we change the HTML to reduce the size of the image the quality stinks.  Is there a way to do this.  Maybe with an external script that would fetch the image and automatically reduce it?  I guess an example would be like:

<img src=http://www.domain.com/reducer.cgi?image=http://www.otherdomain.com/image.gif>
Avatar of ahoffmann
ahoffmann
Flag of Germany image

wget -O - http://www.otherdomain.com/image.gif | gifresize
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rkosai
rkosai

The image should not lose quality as long as the aspect ratio as maintained, as Tintin stated.

This means that if you have a 800x600 picture, then you could resize it to an 8x6 picture, or a 160x120 picture, or anything where the width/height ratio is the same.  But you couldn't resize it to something like 8x7 or 160x150 without making the graphic look bad.