splittingred / Gallery

A Gallery add-on for MODx Revolution.
http://svn.modxcms.com/docs/display/ADDON/Gallery
67 stars 61 forks source link

Gallery phpthumb changed behavior with 2.1 update #97

Open anselmh opened 13 years ago

anselmh commented 13 years ago

Since updated to 2.1 phpthumb works different within Gallery snippet.

anselmh commented 13 years ago
[[!GalleryAlbums? &toPlaceholder=`GalleryAlbums` &limit=`25` &albumCoverSort=`rank` &prominentOnly=`1` &rowTpl=`GalAlbumRowTpl` &thumbWidth=`160` &thumbHeight=`160` ]]

This works properly. When adding &thumbZoomCrop=1 or &thumbProperties={"zc":"1"} the whole processor stops and outputs original image. Means, zoomcrop doesn't work anymore. Any suggestions?

Martijn1981 commented 13 years ago

I'm having the same problem here.

exside commented 13 years ago

Me too, it's not stopping everything on my page but it seems to not respect the zc parameter...

this was before the update from 1.2.0rc2 to 1.2.0pl:

[[!Gallery? &album=`7` &limit=`0` &imageWidth=`1000` &imageHeight=`800` &imageQuality=`100` &thumbQuality=`85` &thumbHeight=`130` &thumbWidth=`130` &thumbTpl=`galThumbTpl` &toPlaceholder=`gallery` &useCss=`0`]]

I just need cropped square thumbnails and this doesn't work anymore with 1.2.0pl...doesn't seem to have a relation to the modx version...I had 2.1.0pl when I did the update of gallery, when I updated to 2.1.1pl it didn't change anything...

I then tried the &thumbProperties snippet parameter like follows:

[[!Gallery? &album=`5` &limit=`0` &imageWidth=`1000` &imageHeight=`800` &imageQuality=`100` &thumbProperties=`{"q":"85%", "w":"130", "h":"130", "zc":"C", "iar":"0", "far":"0"}` &thumbTpl=`galThumbTpl` &toPlaceholder=`gallery` &useCss=`0`]]

I tried "iar":"1" to see if phpthumb is working, as far as I know should zoomcrop overriede ignoreaspectratio, but it didn't iar is working and makes an ugly non-proportinal thumbnail =)...but this shouldn't even happen or am I wrong?

What's the issue and how to resolve this, it's pretty critical^^...

thanks in advance

EDIT: Went back to 1.2.0rc1...can't leave the site up with "stretched" thumbs...will have to wait til this is fixed

morelmm commented 12 years ago

I've spent 3 days working on it and nothing works, but.. After moving the site to another server, everything works fine!

So can it be a problem with server configuration? ie. i've noticed that on the problematic server i have magic_quotes_gpc Off, and on the another they're set to On

Please help, Thanks