![]() |
|
custom cache image size not generated in news - 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: custom cache image size not generated in news (/thread-13255.html) Pages:
1
2
|
custom cache image size not generated in news - vincent3569 - 26-02-2019 hi, for example, I have cache image name like: there was a time, with cache image manager, and 'cache stored images' tab, these cache images was generated. you can see this news as example: https://www.vincentbourganel.fr/news/randonnee-au-rocher-du-playnet-bis-repetita/ what is the matter? custom cache image size not generated in news - acrylian - 26-02-2019 Actually that should work as usual. Nothing to the actual handling change except the way cacheimages are generated. You might want to try the support build and make sure the cachemanager where you can choose how images are generated: Legacy mode (images are printed) and cURL (images are generated by a request). For some reason the actual more reliable cURL mode is not working as reliable on every server. It does work fine and better on my local and my servers incl. zenphoto.org but for example not on Fretzl's. We couldn't find out why. Perhaps that is what you are encountering. custom cache image size not generated in news - acrylian - 26-02-2019 I fear I can somehow reproduce this and it has nothing to do with the cURL vs legacy mode. Not sure how we missed that but we did naturally test it with all the cachemanager changes. The actual logic for image discovery within text didn't change actually. Will take a look… custom cache image size not generated in news - vincent3569 - 26-02-2019 I don't speak about images in albums. what this feature is supposed to do and how it is supposed to work? as far I can read, it is supposed to do 2 different things:
right ?
right ? as far I can test, both of these items aren't working as expected: it works in the past (it was a feature request of mine, and stephen worked on it). custom cache image size not generated in news - acrylian - 26-02-2019 Yes, that is how it is supposed to work. And as mentioned I can reproduce this not working correctly. I will take a look what's going on there (or what not specifially). As mentioned before in the future embedded images will be using a content macro - which I sometime soon will add - which should be used preferredly. It has a lot of benefits as being indepedent from any url structure and also can cover missing images without showing broken ones. Addtionally it can incorporate any caption structure additionally. Drawback is of course there is no live preview in edit mode anymore then. custom cache image size not generated in news - vincent3569 - 26-02-2019 I missed something: it's really annoying because many of my news have missing images and I need to generate the cached images manually by calling i.php in debug mode. very long and very painful with a lot of pictures. a macro content to add an image sized as we want (ie with all the possible parameters of i.php: s, w, h, cw, ch, cx, cy... and more: class, alt,...) would be a VERY nice improvement. custom cache image size not generated in news - acrylian - 26-02-2019 Out of my head I cannot tell if that cache image name is really correct. Remember we had cache images broken and then fixed it. Sure that isn't one of those older ones? I am quite sure we didn't change anything beside that… custom cache image size not generated in news - acrylian - 26-02-2019 So I found something out: Is your site perhaps using the "protect image cache" option? Then this is the cause. If enabled you always get i.php thus no cache file references works and generates anything. Also for the same reason the cache db images is not working either. At least that is what I can reproduce. That mode is not recommended anyway as it seriously slows down the site because of extra overhead. As the option text notes. custom cache image size not generated in news - vincent3569 - 26-02-2019 I don't use that option. custom cache image size not generated in news - acrylian - 26-02-2019 okay, good. But then I fear I cannot reproduce it. But I can partly reproduce the issue you reported on https://forum.zenphoto.org/discussion/1410404/wrong-custom-size-with-png-file#latest Although only for embedded images as it seems. custom cache image size not generated in news - vincent3569 - 26-02-2019 the way I do (and maybe, steps to reproduce for you):
in my case, nothing appends and custom cache image is not created. custom cache image size not generated in news - acrylian - 26-02-2019 Had tested that with maxspace images as Zenpage uses on the image page and that works as intended for me. WIll try with a more complex sizing later. custom cache image size not generated in news - fretzl - 26-02-2019 Tried some custom sized/cropped images and it all works as expected. custom cache image size not generated in news - acrylian - 28-02-2019 I can reproduce the issue with gif and png images and working on it. custom cache image size not generated in news - acrylian - 28-02-2019 Please try the support build. custom cache image size not generated in news - acrylian - 01-03-2019 Sorry, my above replies where in the wrong topic and referred to https://forum.zenphoto.org/discussion/1410404/wrong-custom-size-with-png-file#latest custom cache image size not generated in news - vincent3569 - 01-03-2019 I tried latest build, but nothing changes with my cache custom sized pictures not generated. custom cache image size not generated in news - acrylian - 01-03-2019 There has been no work on it yet since we were not able to reproduce it. custom cache image size not generated in news - acrylian - 01-03-2019 Good news: We were able to reproduce it. Bad news: There will be no fix. We found out this: Reason is that your image filename name has a number:
Now the This does only happen which images named like this and only within text content like pages or articles. It does not happen within normal theme context using theme functions because there it is "known" what the actual image file name part is and what not. So the only fix is to rename the image (e.g. custom cache image size not generated in news - vincent3569 - 01-03-2019 It's very annoying |