doronz / hoverzoom

Automatically exported from code.google.com/p/hoverzoom
0 stars 1 forks source link

plain image not zoomable #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go 
http://wccftech.com/2011/05/01/leaked-qualcomm-presentation-unveils-gen-snarpdra
gon-chips-25ghz-cpu-clock/
2. the first image there, <img class="aligncenter" 
src="http://wccftech.com/wp-content/uploads/2011/05/Qualcom_roadmap_2011.jpg" 
alt="">, should be zoomable .. but he is in a <p> block and maybe its not 
obvious.

You might detect images that are not at full zoom like this:
function magOf( icontext ) {
 return [(icontext.width / icontext.naturalWidth), (icontext.height / icontext.naturalHeight)];
}
for (var img_element in imgs) { // imgs is Array of image objects
 ratios = magOf(img_element["context"]);
 for (var i in ratios){
  if (i < 1.0){ // image could be zoomed! // }
 }
}

Hover Zoom version: 2.5
Google Chrome version: 11.0.696.60
Operating system: Vista

Original issue reported on code.google.com by roberto....@gmail.com on 1 May 2011 at 10:58

GoogleCodeExporter commented 9 years ago
It already works somewhat like that, however the ratio is not the same. The 
zoomed image has to be at least 1.8 times bigger than the thumbnail to be 
shown, otherwise a lot of resized images would trigger a zoom although it would 
not be really useful.

Original comment by romain.v...@gmail.com on 5 May 2011 at 12:28

GoogleCodeExporter commented 9 years ago
ooh. well thank you :) 

just as a feature request — might it be possible to add an adjuster this 
ratio to the options page for hover zoom? or a keypress to force loading an 
image with hoverzoom?

Original comment by roberto....@gmail.com on 5 May 2011 at 4:07

GoogleCodeExporter commented 9 years ago
I'll try to find a solution for this.

Original comment by romain.v...@gmail.com on 6 May 2011 at 7:39