![]() |
|
"Image size" option not working - 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: "Image size" option not working (/thread-2702.html) |
"Image size" option not working - azoapes - 2008-04-18 I think I don't know what the option is for, actually. What I want to do is to limit all images that are uploaded so that no image is wider than, say 600 px . How do I do that? The "Image size" option in Options > "image display" seems to have no effect on the images. I want them to be at most 600 px wide when the visitor clicks them and the lightbox appears. "Image size" option not working - sbillard - 2008-04-18 The image size option works for "image pages" ( "Image size" option not working - azoapes - 2008-04-19 Thanks for your quick reply! I'm currently using Simple+ so there's the reason for this problem. The options are to 1) get help from you guys how to activate that [i]image.php[/i] or 2) to change my theme. "Image size" option not working - acrylian - 2008-04-19 The lightbox (actually it's slimbox) within simple+ uses the full size image to display. This is the image you uploaded. "Image size" option not working - azoapes - 2008-04-19 Thanks for your reply, acrylian! I understand that changing that line will take the resized image and display it instead of the original large one. Unfortunately, it seems I have no resized images... changing that line caused my lightbox (slimbox to not find the image. In the album folder, there is only the original (large size) image and no resized image. I only have one image upploaded in that album. I wonder why my zenphoto doesn't resize the images that I upload...? I have set [i]"Protect full image"[/i] to false and [i]"Full image download"[/i] to false. "Image size" option not working - acrylian - 2008-04-19 Sorry, I didn't test the above solution and made just a quick guess. Indeed that seems not to work... Zenphoto does resize images for the thumbs and the sized image that is only used if you use the image.php page (which this theme does not do) and someone visits the image or if you use the precache buttons in the admin. If you want to use the simple+ theme without modifing you would have to resize your images before uploading. "Image size" option not working - azoapes - 2008-04-19 I have a working knowledge of JavaScript and PHP, altough I have no insight in the zenphoto class hierarchy. Maybe I can make the slimbox load image.php?id= and provide the image content-type? Or is there a simpler solution? "Image size" option not working - acrylian - 2008-04-19 If slimbox is able to open pages (thickbox can for example), you could call the image.php you would have to create one for the theme by modifying one from default theme for example first with this: Please take a look at default theme for example. "Image size" option not working - azoapes - 2008-04-19 Sorry, I know nothing of mod_rewrite as I don't use an Apache server. Also, iframes are deprecated, even if it's in a slimbox I don't like the solution. I have a better idea. Is there a way to retrieve the cached (resized) image URL? You mentioned Maybe I can even take that cache function (that image.php must be using) and call it from album.php to make it cache automatically? "Image size" option not working - acrylian - 2008-04-19 If you precache the images in the admin you should get images like that above mentioned. Actually instead of "zenphoto" and "zp-core" you could use the constants WEBPATH and ZENFOLDER. "Image size" option not working - azoapes - 2008-04-19 O-kay... then you have another version of zenphoto than me, 'cause in my template-functions.php the getSizedImageURL is defined like this:
}` An optional parameter had been like "Image size" option not working - acrylian - 2008-04-19 Shame on me, I indeed confused it with Please take a look at our functions guide, too. "Image size" option not working - azoapes - 2008-04-19
Do you have any idea why I have no SizedImageURL for my images...? Didn't get any URL with "Image size" option not working - acrylian - 2008-04-19 Ok, try "Image size" option not working - azoapes - 2008-04-19 Yes, Now I've modified my Simple+ theme to work with PHP safe_mode On and displaying the cached image from the albums instead of the original ones. It seems to be caching the images automagically too. A last question for you; will I have to cache any images that I upload now? I just tried uploading an image and directly checking it out in the gallery, without precaching, and it worked fine. Will this fix stay in effect and work in the long run? Is it a huge server burden or won't work with uploading zip archives or anything like that? "Image size" option not working - acrylian - 2008-04-19 zenphoto always caches automatically once if someone visits an image the first time (both thumbs and the sized image). If you don't change the size in the options for thumbs or the size image, nothing more will happen. Additionally you have the option to cache manually either all images (on overview in the admin) or for each album individually (on the album's edit page in the admin). "Image size" option not working - bmmoshik - 2008-05-28 Hello.. please can you give me the solution? send me the image.php file or something like that...? i'm also have this problem. thanks. |