Block Image Zoom won't display Thumbnail correct size

Permalink
I have an image that is 800x350 that I am displaying on a page using the Image Zoom block. I set the max thumbnail size to be 800x100 but the thumbnail is being displayed at approx 300x100. How do I display the thumbnail 800x100?
Jerry

stoneyard
 
Remo replied on at Permalink Reply
Remo
it sounds to me that you want to crop your picture, right?

The c5 thumbnail function makes sure the ratio of width and height stays the same, which is what works in probably 98% of all situations.

It just doesn't support cropping out of the box..
stoneyard replied on at Permalink Reply
stoneyard
Ok thanks. I didn't want to crop the image, just resize it to the specified dimensions. I understand why it is change the width and the height. I appreciate the quick answer.
p.s. I manually cropped and re-sized the image to 800x100 and am using the display image block instead.
Remo replied on at Permalink Reply
Remo
it's still pretty much the same..

Usually a thumbnail looks better if you keep the width/height ratio.

Why do you want to resize a picture to such an unusual size?


this behavior is by the way the reason why it's called "max width" and "max height" and not just "width" and "height"...
stoneyard replied on at Permalink Reply
stoneyard
I have an image that is 800 x 350. I would like the thumbnail to be 800x100 and then have the full size 800x350 display when the user clicks on the image.

Guess the module needs one more parameter to let the user pick if the aspect ratio is maintained or not.
Remo replied on at Permalink Reply
Remo
I don't see a single reason why I'd like to have such an odd thumbnail.

Most pictures looks silly if you don't keep the ratio.

I just want to know why the block should have such an option...
stoneyard replied on at Permalink Reply
stoneyard
I agree that most pictures will look silly if the aspect ratio is not maintained. I guess sometimes designers want to do silly things :-) This is not mission critical... I appreciate the help. Jerry.
Remo replied on at Permalink Reply
Remo
I added it to the feature request list here
http://www.concrete5.org/marketplace/addons/zoom_image/feature_requ...

I might take care of it someday, but no in the near future I think...
stoneyard replied on at Permalink Reply
stoneyard
I get this message if I leave the width and height blank...


Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'thumbnailHeight= WHERE bID=575' at line 1] in EXECUTE("UPDATE btZoomImage SET fID=185,altText='',thumbnailWidth=,thumbnailHeight= WHERE bID=575") ' in /usr/local/share/concrete5/concrete5.3.1.1/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 Stack trace: #0 /usr/local/share/concrete5/concrete5.3.1.1/concrete/libraries/3rdparty/adodb/adodb.inc.php(1042): adodb_throw('mysql', 'EXECUTE', 1064, 'You have an err...', 'UPDATE btZoomIm...', false, Object(ADODB_mysql)) #1 /usr/local/share/concrete5/concrete5.3.1.1/concrete/libraries/3rdparty/adodb/adodb.inc.php(1017): ADOConnection->_Execute('UPDATE btZoomIm...', false) #2 /usr/local/share/concrete5/concrete5.3.1.1/concrete/libraries/3rdparty/adodb/adodb-lib.inc.php(174): ADOConnection->Execute('UPDATE btZoomIm...') #3 /usr/local/share/concrete5/concr in /usr/local/share/concrete5/concrete5.3.1.1/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php on line 78
Remo replied on at Permalink Reply
Remo
..thanks