News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Thumbnail resize

Started by emicoma, August 05, 2013, 23:25:21 PM

Previous topic - Next topic

emicoma

Hi
I set the thumbnail image to square values, but resize does not create square image
Is it the normal way of behavior or I have  a bug somewhere ?
I would like to have images fitted in a white suare..
thanks for your help
(I know i can trick in css, but i really want my square resized..)

Maxim Pishnyak

Be more specific pls. Dimensions of both pictures?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

emicoma

Both pictures ? i have only one / product
I set 200px x 200 px for thumbnails size

Maxim Pishnyak

During resizing you have to work with two pictures: original and resized ones.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

emicoma

#4
Could you please give more details ?
I want change on thumbnail product only, not on original image
The dynamic thumbanil resizing is supposed to work only for thumbnail isn't it ?
I want to know it is normal and not a bug of my configuration
If not a bug, i guest this is the img2thumb.php file to modify ?
thanks

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

romeof1980

hi Emicoma,

I would try to use a square pic before trying to mess with php.
when I need square thumb I usually cut/resize the pictures with Gimp or, if you have to work on more pictures, sometimes phatch works fine too.
If I remember correctly the way VM resize the imagine to a thumbnail is like that:
400*400, 399*399, ..., 350*350 and so on
or
400*200, ..., 200*100, 100*50 and so on

thus if with an original pic 400*200px you set, i.e., 100*100 I guess you'll get a thumb 100*50

in a nutshell.. you can't cut only one side, thus you'll set one and the other will be resized proportionally.

for my experience, it's not a bug, it's the very normal way it works ;D

cheers,
romeo