Module: Histogram block

nachonnr

Joined: 2012-08-04
Posts: 3
Posted: Sat, 2012-08-04 11:07

I think that it would be very interesting if a block could show the histogram of the photo.
I´m not a programmer, but when I´m looking for this feature over internet I can see some utilities and post that treat this using PHP:

- http://www.pixelpost.org/extend/addons/rgb-histogram/
- http://jpgraph.net/
- http://www.forosdelweb.com/f18/generar-histograma-foto-642318/

Thanks for your attention.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-08-05 20:16

I get differing results from different scripts.
Example: http://www.langleycom.com/histo.php 2 different scripts using the same image.
What one is right?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-08-05 21:56

If this is the right one:
http://www.langleycom.com/histogram.php?image_url=test_image.jpg&height=50&width=200
for this image:
http://www.langleycom.com/test_image.jpg
then I should be able to make a block out if this with the a admin page for configuring the background color as well as the chart color.
Let me know if that is what your after & that the chart is right for that image.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mattdm

Joined: 2005-07-22
Posts: 181
Posted: Sun, 2012-08-05 22:13

The last thing you posted looks right.

Are you planning to generate them on the fly or store them a la thumbnails?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-08-06 02:56

For the first round I think generate on the fly from the resize not the fullsize so that should help with generation time then perhaps cache them for a future version.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2012-08-08 05:00

Version 1 for testing:
http://codex.gallery2.org/Gallery3:Modules:histogram_block

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team