![]() |
|
No image processing besides thumbnail generation needed - 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: No image processing besides thumbnail generation needed (/thread-2294.html) |
No image processing besides thumbnail generation needed - steffen - 2008-02-28 It there a way/option to disable the image processing besides the thumbnail generation? All of my pictures have already watermarks and their x/y dimensions are also perfect. The further processing via TIA No image processing besides thumbnail generation needed - acrylian - 2008-02-28 Just upload fullsize images in exact that size (or a little smaller) you need in your theme and set the size to that in the option, then zp should only process the thumbs and take the uploaded image as the sized image. No image processing besides thumbnail generation needed - steffen - 2008-02-28 The image in the cache folder is different from the image in albums folder, even if I set the parameter "image size" in the admin options to the image size of the picture (e.g. option: 500px, image: 500x333). To be sure not using an old already cached picture, I pressed the button "Pre-cache images" with clear enable before. The cached picture is definitely processed via i.php, its size is different from the original. If I look into that picture, there are some additional information generated by gd: No image processing besides thumbnail generation needed - acrylian - 2008-02-28 I can't reproduce that in my installation. Could you try uploading an image that is a little smaller than set in the options? If I remember right, you use a custom theme? Which function do you use for the sized images? No image processing besides thumbnail generation needed - sbillard - 2008-02-28 Please try this again with the nightly build. No image processing besides thumbnail generation needed - steffen - 2008-02-29 It works now, thank you. No image processing besides thumbnail generation needed - e_zorglub - 2011-01-23 Good evening I have just installed the last version (1.4.0.1), and I can not get any more the same behaviour as mentioned above. No image processing besides thumbnail generation needed - e_zorglub - 2011-01-23 Ok, so I finally managed to use directly the original image, by changing the image.php file. if (function_exists('printUserSizeImage') && isImagePhoto()) { printUserSizeImage(getImageTitle()); } else {
}
?> [img][/img] No image processing besides thumbnail generation needed - sbillard - 2011-01-24 The change you site was quite deliberate. The overhead of each time seeing if the image did not need resizing was much greater that the cost of a resize. Specially over time. The resize is done once. The testing is done every time someone visits a page with such an image. As to your error, a quick look at the function would show
Basically what you will be doing when you get this to work is causing the actual image to be loaded into an image resource so that you can check its size. As mentioned above, this is much overhead for little use. No image processing besides thumbnail generation needed - e_zorglub - 2011-01-24 Thanks for your answer. I guess the correct solution would be to read directly to the "width" properties of the image in the SQL database. How could I do that simply ? For the future, I think it would be nice to add a general option in the admin panel, to let the user chose between resized or not resized images. No image processing besides thumbnail generation needed - acrylian - 2011-01-24 We probably won't as by standard the full image is never shown directly, always as an "extra" (since it mostly will break any theme anway). If the full image is smaller than the size set, it will be shown directly without resizing (cached anyway with 1.4.x). Unless you tell via the option to upscale. And not all themes have support for the usersizeimage plugin your apparently does. No image processing besides thumbnail generation needed - sbillard - 2011-01-24 We will not add such an option. "if you give someone a choice, they may make the wrong one." |