Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

zoomed out image quality enhancement

Status
Not open for further replies.

whirlpool6

Technical User
Sep 2, 2007
58
JP
hello everyone,

image resize is really a hard problem. and our system deals with resizing images often with just a click of a button. the quality of zoomed out images are really bad on web browsers. i have been asking help from this site regarding this issue.

we have found a solution for this in ie7. i used image.style.msInterpolationMode = 'bicubic' and it really produces a readable zoomed out image... but this is not applicable in ie6. we tried a server side solution in php but it really is slow. we need a fast solution since this application zooms images with just a button click. ive tried searching for freeware plugins and activeX controls but found none.

please help me on this. i need your suggestions on how this can be done. any suggestion is greatly appreciated. our system uses php, css, and php and it only runs in internet explorer.

thanks a lot.
 
Client-side you're stuffed, as you've found out already. Probably your best bet is to create multiple versions of the image server-side at the different zoom levels you require (or steps in between if there are many) and pre-load those in the browser.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
dan,

thanks but i can't do this suggestion. if i'll do this, ill be stuffed with lots of images... our image size are approximately 2mbs. and zooming goes as low as 10% to as high as a thousand%.

is there somesort of a way to change the interpolation mode or resampling mode in ie6? there must be a way to deal with this.

thanks a lot.
 
is there somesort of a way to change the interpolation mode or resampling mode in ie6?
No.
...there must be a way to deal with this.
Why "must" there? Who says?

Someone may have developed an ActiveX plugin that achieves this, but it will definately be proprietary. I have never seen such a thing in the past 15+ years on the web (but I have never specifically spent my time looking).

Maybe you could process the lower resolution images server-side and create some "larger resolution" images "on the fly" using interpolation techniques. You could cache the files that are created server-side for subsequent requests for the same file. There are libraries that can do this available for PHP and Java (to my knowledge).

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
wahhh... then this is a hopeless case... i have tried server side programming on this using php but it really is slow. this is why im looking for a client side solution....

does anybody know of an activeX for this? please help me...

thanks a lot...
 
is it easy? i don't know how to... our server is linux but our clients are windows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top