![]() |
|
Standardized image source? - 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: Standardized image source? (/thread-12422.html) Pages:
1
2
|
Standardized image source? - wibbi - 12-03-2018 Is there a way to standardize the image source? It is quite unfavorable to use relative paths and once query strings. I need relative paths by all, not query string. index
Standardized image source? - wibbi - 12-03-2018 Pah! Is it really like that? Relative paths to images that are already in the cache. Query strings for images that are not yet in the cache? Extremely unfavorable! A problem! I absolutely need all images already in the "cache". (I think that's not good with on the fly and the cache anyway). Why I need it because I work with hard links. That's going to be a problem anyway. Standardized image source? - acrylian - 12-03-2018 Yes, it is like that and we lenghtly discussed the "on the fly" cache version creation already. That query string appears only once until that cached version is created. Standardized image source? - wibbi - 12-03-2018 OK. Not good. How can I cache all images? Standardized image source? - wibbi - 12-03-2018 No no no. Not a good idea. In my gallery only the thumbnails in the album pages are released for search engines. All other images are indexed locked, even hotlinking locked. For this I use soft links for the image source of the thumbnails in the album pages (thumbs->cache), and (str_replace ("/cache/", "/thumbs/", ...)). /cache is locked. /thumbs is free. The next problem with this is that there is no function getAlbumThumbImage() and getImageThumb(), only printAlbumThumbImage() and printImageThumb(). So I have to make a core hack first (swap echo for return), and then adjust the code in the theme. Very inconvenient. I have only found the Python third party scripts for pre-chaching and i will not use it. Python scripts are not a solution. Big problem. Standardized image source? - vincent3569 - 12-03-2018
Standardized image source? - wibbi - 12-03-2018 Wohooo! That's a huge security hole! Anyone can create an infinite number of files on my server if he changes the variables in the query strings. Anyone can flood my server with image cache files! Standardized image source? - acrylian - 12-03-2018 There is a flood protection built in actually, there is an option for image processor security (Options > Security), and you can additionally obscure cache filenames (for the created ones though). Even we didn't ever have any problem with someone flooding the site Standardized image source? - vincent3569 - 12-03-2018 malte surely would give you more technical advices about that Standardized image source? - wibbi - 12-03-2018 What the hell? Who programmed the plugin cacheManager? I have ~ 15000 photos and these all are loaded on the plugin page. 15000 images in one HTML page. -> extremely overloaded browser. I'm really not happy. The Plugin cacheManager don't work. [code]Refreshing cache for Gallery
5 cache sizes to apply.[/code] [code]Finished processing 14087 images (70435 cache sizes requested).[/code] [code]$ find /albums -type f | wc -l 14088 x 5 = 70435 [code]$ find /cache -type f | wc -l Standardized image source? - wibbi - 12-03-2018 I can create many many images on all Zenphoto installations, there have the "on the fly" image source paths. Example with a image source from a thumbnail.
... Standardized image source? - wibbi - 12-03-2018 By the way, Standardized image source? - sbillard - 12-03-2018 Why don't you try creating an image by forging the link above with different sizes and see how well it works for you. You really should not complain about a "problem" unless you have actually confirmed that there is one. Standardized image source? - sbillard - 12-03-2018 "What the hell? Who programmed the plugin cacheManager? I have ~ 15000 photos and these all are loaded on the plugin page. 15000 images in one HTML page. -> extremely overloaded browser. I'm really not happy." Well, then maybe you should do your caching by album. These are abilities you have, just do a little familiarization with the software and don't use the features that do not suit you. Standardized image source? - vincent3569 - 12-03-2018 hi stephen as an "old" user, I have to admit that I don't full understand some options. Security>Obscure cache filenames Standardized image source? - wibbi - 12-03-2018
I did it! you can create endless images on foreign servers if you have an image source path with querystring. If you study the Zenphoto source code, you can create a query string on any Zenphoto installation and create files on all Zenphoto installations. Sorry, this is a no go that anyone can create files on my server. Muahahaha. Plugin cacheManager -> author: Sbillard
Yes, I would like that, but with Zenphoto. I have already made suggestions. It would be best if all thumbs and resizes were created directly when visiting the image edit page (list). I said it a few days ago that "on the fly" is a nice gimmick, but nothing more, and now it's a nasty gimmick. In addition, it would be better if the different image sizes were saved in different folders, without renaming. Standardized image source? - vincent3569 - 12-03-2018 wibbi you come for asking explanations about how zenphoto works (and you have very specific questions). Standardized image source? - vincent3569 - 12-03-2018 to generate cached pictures for an album, go to admin>albums and for each album you have a "cache album images" link. and my personnal use of "cache manager" is to cache all pictures, cache size per cache size (and refresh my browser if needed), because I know and admit that zenphoto can't do "all in one". Standardized image source? - wibbi - 12-03-2018 Security>Obscure cache filenames
enabled Security>Image Processor security
The problem is here not the "requesting", but the creating and saving. I do not recognize any effect by enable "Image Processor security". What exactly does this option do? I notice nothing. Images>Protect image cache
Another interesting gimmick, but just a gimmick. At least it works. Unfortunately it has a "warning". And image source paths with query string. Images>Secure image processor
What? Is not that a standard? Every can see protected and not published albums and images? Images>Full image protection
That's my setting. Best. "Disable hotlinking" Standardized image source? - wibbi - 12-03-2018
OK. Thank you very much for this note. I accept that as a solution, for me. Even if that means more work for me and I must not forget it, especially if I move images. (I have the information that the images in the folder /cache are not moved.) Nevertheless, the problem remains that with the image source paths with query string any one can create zenphotos files on the server. That's a no go! And there are no arguments to justify that. |