![]() |
|
Histogram plugin ready - 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: Histogram plugin ready (/thread-3448.html) |
Histogram plugin ready - MarcelSpijker - 2008-08-11 I managed to get a working plugin that creates a histogram form the image that is been shown. I got the idea from a Pixelpost plugin called RGBhistogram, actually the calculations are from this plugin. I just molded it to work with Zenphoto. For who is interested, it can be downloaded here: One bad thing! I still have to make it so that the histogram files are also in subfolders. Have no idea how to do, so any ideas are welcome. Histogram plugin ready - acrylian - 2008-08-12 A link has been added on our zenphoto plugins page. Histogram plugin ready - sbillard - 2008-08-12 Nice plugin. Some comments: The plugin does not create the folder for the histograms. You should add if (!file_exists($folder)) {
}` The Zenphoto convention is that functions that begin with I think that implementing the subfolders is pretty important. You may get image name collisions otherwise. Of course, eventually the in-line text needs to be changed to English (where it is not) and enclosed in Histogram plugin ready - acrylian - 2008-08-13 Also you could consider simply adding the album name to the image file names to avoild name conflicts (for example albumname_imagename.jpg). Histogram plugin ready - jlang - 2008-08-14 As a suggestion, you could use the same cache folder that the resized and thumbnail images use. Histogram plugin ready - MarcelSpijker - 2008-08-15 Thanks for the replays! I will update the plugin as soon as possible and let it know here. Histogram plugin ready - MarcelSpijker - 2008-08-16 I put up a new version of the histogram plugin. I have some new ideas to add, like a button in admin panel to clean up the histogram files that are no longer used, and maybe an option with every image to set view/no-view for the histogram file, don't yet know how to do such a thing, bit i will try So as you can see i have lots of ideas, but non how to create it, so it is a nice learning project for me All input is welcome, and again thanks for the great input! Histogram plugin ready - sbillard - 2008-08-16 The button in your options is not too hard, just use the custom handling type. You would not be able to add an option for each image without modifying the zp core. So, it depends on how important it is to decide by image about the histogram. Maybe if you just include hiding/showing the histogram in the plugin that would be good enough. Histogram plugin ready - code - 2008-08-17 I just updated to 1.2 and downloaded the plugin... I got this error Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3888 bytes) in /home/myusername/public_html/zp-core/plugins/histogram.php on line 116 Histogram plugin ready - krainbolt - 2008-08-17 Your PHP memory is set to low. You'll need to change "memory_limit" in your php.ini file to a larger value. Histogram plugin ready - code - 2008-08-17 thanks! |