ZenphotoCMS Forum
Problems with aspect ratios and constant image height on later ZP versions - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Problems with aspect ratios and constant image height on later ZP versions (/thread-13431.html)

Pages: 1 2 3


Problems with aspect ratios and constant image height on later ZP versions - enjay - 2020-07-14

For the current installation:
zp_options.image_size == 780,
zp_options.image_use_side (basic theme) == height

That would suggest the values were correctly set by the UI.




Problems with aspect ratios and constant image height on later ZP versions - acrylian - 2020-07-14

Indeed, and most certainly these are also used correctly.




Problems with aspect ratios and constant image height on later ZP versions - enjay - 2020-07-14

Well, not here.. the image is scaled to 780x161.




Problems with aspect ratios and constant image height on later ZP versions - acrylian - 2020-07-14

I meant they are used by the code but somehow the outcome on your server is something wrong regardless…




Problems with aspect ratios and constant image height on later ZP versions - enjay - 2020-07-15

I've given up for now and replaced image.php with the changed version using the custom function.

Is the version with the new thumbnail logic done yet?

Simple workaround for the Pano album: I will upload a 3:2 version of the image and mark that one as unpublished. Thumbnails of unpublished images still get displayed in the index.




Problems with aspect ratios and constant image height on later ZP versions - acrylian - 2020-07-15

Is the version with the new thumbnail logic done yet?

No

Thumbnails of unpublished images still get displayed in the index.

Unpublished items are only shown if you are loggedin or know the lin but setting as a album thumb should work.




Problems with aspect ratios and constant image height on later ZP versions - enjay - 2020-07-15

Yes it works fine, I have tested it. Bit of a kludge, but for a single album it will do.




Problems with aspect ratios and constant image height on later ZP versions - enjay - 2020-07-15

"New" gallery is now live (no more gallery.new). I disabled ImageMagick again because it made thumbnail generation quite slow.

New installation looks like an almost exact copy of the old gallery now. Thumbs up.




Problems with aspect ratios and constant image height on later ZP versions - acrylian - 2020-07-15

Great you managed it working to your liking. Btw, I am working on the thumbs stuff. Uses the same code base as the large images and I so far didn't encounter anything that would explain your issue and why we can't reproduce it…

I disabled ImageMagick again because it made thumbnail generation quite slow.

Interessting, heard that before. Actually the saying always was that Imagick was faster and less memory consuming than GD. When testing I personally didn't notice actual differences.