Hello!
I'm a beginner in modx and now I'm trying to make gallery work properly (I use Gallery plugin). I've got modx revolution 2.2.13, php 5.3.28, ImageMagick and GD are enabled. The problem is: I want thumnails to be resized according to their original proportion, but they don't. A crop is taken from each of the images (for example the central one) and outputs as a thumnail. But I need the whole picture. The chunk for a thumbnail output looks like that:
<img class="[[+imgCls]]" src="[[+thumbnail]]&w=100&h=110&zc=0&far=1&q=90&bg=FFFFFF" alt="[[+description]]" value="[[+album_name]]" />
I read the manual about phpThumb, which is situated at phpthumb.sourceforge.net, but I cannot understand where is the problem or what's wrong with my arms and my head. I tried to delete &zc from that string, I tried to use different values of &far …
The call of the Gallery in my template :
[[!Gallery?
&album=`[[*gallery_name]]`
&thumbTpl=`GalItemThumb_custom`
&containerTpl=`GalleryAlbumTpl_custom`
&thumbFar=`1`
&thumbZoomCrop=`0`
&imageWidth=`800px`
]]
About two weeks ago I changed my hosting and as a result moved my site to this new one. I've updated ModX Revo from 2.2.10 to 13 and continued to develop it there. Probably the problem appeared as a result of unseccessfull update or it was a bad moving of the site to another host. But I found it out only now, trying to upload new gallery. It worked Ok earlier. I tried to replace the folder core/model/phpthumb by the same one from the just installed modx 2.2.13 but changed nothig. I suppose, it's the problem with phpthumb, but I can't understand where should I seek the problem.
Could smb please help me, whats the problem? May be my arms are crooked?
[ed. note: doct.leavsy last edited this post 12 years, 6 months ago.]