0

Hi,

How can i improve image quality on resizing it by mouse dragging.

I need to do this using javascript. Can we achieve this using some scale factors. I have no idea. Any help will be greatly appreciated

Please let me know in this.

Thanks in advance

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by almostbob
0

only if the original image is as large as the largest dragable size.
increasing the size of the image beyond its actual size creates interpolated pixels, 'best fit of color' that may not be correct or creates visual pixels that are multiple screen pixels in size, 'blocky' images.
If the image is initially served at a small size,
a larger image can be background loaded by a script,
page times are not impacted,
the effect can be seamless.
example code only, not checked or correct
where "onresize" is some defined action havent bothered to code

<!doctype>
<html>
<head>
<script type='text/javascript'>
<!--
function imageload() { something to load hi res images }
function onresize() {something to handle image dragging}
--></script>
</head>
<body onload='imageload()'>
<img src='thumbsize.jpg' onresize='self.src="fullsize.jpg"' alt='drag to resize image'>
</body></html>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.