ZenphotoThe simpler media website CMS
zp 1.6.8 and zpBootstrap on MAMP (on M4 Mac mini)
Fresh install - activate zpBootstrap theme
Options > Theme
Thumb size and Image size are blocked. I can not set them. When I click on those options they do nothing - won't let me enter text for a new size. Those radio buttons don't work either.
"defaults" at 220 for thumb and 1000 for Image size
It works fine on a live server BUT as you might know I am trying to create the thumbnails on MAMP for a large (website re-install) dump of photos.
I created an album to see if there needed to be an album before being able to configure the sizes but I haven't added any photos to the album.
I do get this error in the debug.log
{19182:Thu, 19 Feb 2026 03:46:07 GMT} Zenphoto v1.6.8
WARNING: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Applications/MAMP/htdocs/zpphototst/zp-core/classes/class-graphicsgd.php on line 64
imagecreatefrompng called from graphicsGD->imageGet (class-graphicsgd.php [64])
from cacheImage (functions-image.php [226])
from i.php [152]
Could I be missing something from my MAMP environment / maybe a PHP option enabled ?
Comments
I just thought to set the theme back to Basic and as it happens those fields are now available and default to 100 and 595 just like zpBootstrap does on a live server
Maybe this is enough to create my cache thumb files
My host site seems to not be able to resize images ...
Pre-generating all the cache'd images (in MAMP) and copying them to the hosting server fixes a lot of problems
I can now see the thumbnails in
Admin > Albums > Image Order & Images tabs
Gallery > Album thumbnail
Album > page of image thumbnails
Clicking on image itself (and scrolling through (next and prev)
BUT
when I click on the image I believe that I shoul dget a full size image
I don't. it just sets there and spins and after about 2 minutes I get
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Before I put the thumbnail images in cache my host server just gave up and these images were blank
I am using cache manager and selecting
Default thumb size
Default sized image size
& all sizes for admin
For this final image (clicking on image from within the Album while scrolling through images) should it be displaying the image directly with no resizing ?
Why would I not be able to display that and cause my server to time out?
There are no new messages in the zp debug log.
Unfortunately I have no access to the server logs
So to solve this issue of the full size image display I found and disabled the setting
Options > Image > full image protection unchecking (the default) "disabe hotlinking" fixed that problem.
This only applies to the full size image and not the various thumbnails right?
Is there a trade-off for size (storage and download) vs speed for the resizing ?
I notice there are sliders for the Image Quality for 3 different images; normal, full and thumbnails. If I set those to 100 does it speed things up ? I assume that the files in the cache will get bigger but space is not an issue so far (and download speeds are pretty good these days).
Of course most of the images are already compressed before uploading to zp in the first place.
What about when I use a phone or tablet are the images resized differently for that?
Responsive design is one of my reasons for choosing zpBootstrap in the first place.
You should not use a different theme to pre-create your cached images because themes can use their own sizes and even request them on theme level outside thte options if needed. You will get wrong ones and clutter your cache folder.
WARNING: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Applications/MAMP/htdocs/zpphototst/zp-core/classes/class-graphicsgd.php on line 64
imagecreatefrompng called from graphicsGD->imageGet (class-graphicsgd.php [64])
from cacheImage (functions-image.php [226])
from i.php [152]
If that doesn't happen on MAMP likely something on your host is not right. I can tell that ZP works on standard shared hosting, we are on a 10 euro/Month plan yourself and don't have any specific configuration.
Maybe a bit but the most heavy task is the resizing and cropping. You may have to consider that your current host is maybe not properly setup…
No, Zenphoto does not have responsive image sizes by default. It could be coded but zpBootstrap surely doesn't do that. It's an older theme as well. That is planned for 1.7.
Repsonive is the layout, not the image.
Thanks for your feedback - this has been very helpful and I feel I am getting closer to having this all working in my envinroment.
Do you have any thoughts why the same setup on MAMP with zpBootstrap has the Options > Theme
Thumb size and Image size are blocked?
I can not set them. When I click on those options they do nothing - won't let me enter text for a new size. Those radio buttons don't work either.
"defaults" at 220 for thumb and 1000 for Image size
Thanks again
Thumb size and Image size are blocked?
Don't remember offhand but probably the theme sets sizes on the theme itseself by code for layout reasons and therefore disables them because the default sizes would not be used anyway. The official Zenpage theme also does this.
Yes thumb size and image size are blocked on MAMP when I activate the zpBootsrap theme (fork) but not on the live server running "exactly" the same files and config (obviously different databasses but both created by phpMyAdmin on their respective environments and populated by zp running setup.
When selecting the Basic theme I can set the thumb and image size on both MAMP and live server.
Yes, the basic theme does not disable them at all. But a grid system like bootstrap does not work with every size thus it disables them. It must disable them on both installs because that happens on option definition within the theme.
My mistake - you are of course correct.
On my test site I had the Basic theme activated which is why I could change the settings.
As you say with zpBootstrap the settings for thumbnail and image sizes can not be changed.
I will use cache manager to pre-load my cache files as a work-around to get my online site back up for now.