PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old September 5th, 2009, 05:23 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
Histogram addition

Chuck,

Our members has ask me if a photo histogram is possible, I told him that this is not implemented in PP, however, I've com accross a php file and intergrated in the showphoto.tmpl, guess what, it works!

But, when I look at the histogram its mirrored, somehow I can't figure out why it does that, if I excute it standalone its normal.

I know this is not standard PP, but I was hoping you could take a look at it, it might be an addtion for other users.

The code I added to showphoto.tmpl is marked bold and red
An example of the hist you can see here: **** - WFC Foto Beeld, de interactieve foto site van Nederland , right under the photo is the histogram

Thanks in advance

Code:
Content visible to verified customers only.
drare is offline   Reply With Quote
Old September 5th, 2009, 08:39 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
I dont see anything in the code. Merely looks to me like the graph goes fropm 0 to 255 and plots out the color spectrum used right? How do you think its backwards?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 5th, 2009, 09:07 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
Quote:
Originally Posted by Chuck S View Post
0 to 255 and plots out the color spectrum used right? How do you think its backwards?
That's correct, what do you mean by backwards?

The strange thing is also, on some photo's the histogram is not there, not displayed, can it be that I call the wrong variable for the image?

$source_file = $imgurl;
$imgurl is what I fond in showphoto.php.

This is an example of a file in de data map of PP and put the file right into it, the result of the standalone file: http://www.wfcfotobeeld.com/temp/histogram.php

Same picture from the galery, no histogram: http://www.wfcfotobeeld.com/showphoto.php?photo=9989

In the galery for the same file no histogram is displyed, so it might be the $imgurl

Gerard

Last edited by drare; September 5th, 2009 at 09:52 AM.
drare is offline   Reply With Quote
Old September 5th, 2009, 11:11 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
$imgurl is the correct image url

I dont see a histogram for any of your photos
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 5th, 2009, 11:31 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
Ok so that's ok, that's right Chuck, I've disabled it in the meantime, I'm looking also for a js solution, I'm onto something right now and figuring out if this is something.

The fact is, I would like to have seperate histo's for r,g,b, if I find something that works in PP than I can post it here on the forum.
drare is offline   Reply With Quote
Old September 5th, 2009, 12:32 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
JS not working, In post 2 you are talking about backwards, I have no idea what excactly what you mean.

Somehow still the stand alone works fine, but a image is not from a variable, I did include the histogram.php:

Code:
Content visible to verified customers only.
It gives the same output, mirrored histo, very strange because all of the code is the original from the stand alone.

So somehow when implementen in the galery it gives the mirrored output, and I really can't find anything.

Yet another brain breaker!

Last edited by drare; September 5th, 2009 at 01:46 PM.
drare is offline   Reply With Quote
Old September 5th, 2009, 03:30 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Quote:
But, when I look at the histogram its mirrored, somehow I can't figure out why it does that, if I excute it standalone its normal.
my backwards comment comes from your comment there.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 5th, 2009, 03:39 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
Chuck, I'm not sure what you mean by backwards, what should I do backwards?
drare is offline   Reply With Quote
Old September 5th, 2009, 03:51 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Nevermind your not getting it. You are the one telling me its backwards as thats what mirrored means to me
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 5th, 2009, 04:02 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
I think I now understand it.

What I just don't get is that in standalone version the graph is just right, not mirrored, once implemented in the template it's mirrored. Not the worse thing, because it's stil generates a graph, but with a mirror beneath it.

For photographers and for learning two things are most important, A) Exif, B) the histogram, maybe it's would be an addition to implement this histogram in a future version of PP.

Chuck, just something else, lets say I put a normal link into the template to the histo php file, is there a way to transfer the data of $imgurl to the php file? That way I maybe could work something else out?

Again thanks for helping me with this, and I know I've had some (interesting) challenges these past weeks/months.
drare is offline   Reply With Quote
Old September 5th, 2009, 04:37 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
well you can include the histo file using an include. The $imgurl variable is available via the script.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 6th, 2009, 06:15 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
I did include the histogram.php, no effect, at least still the same mirrored histo.

So I tried to call the standalone histogram.php to display the histo in a new small window in this way:

Code:
Content visible to verified customers only.
If I click on the link, the page is opened, but the $imgurl is not passed on to the histogram.php if I get the $imgurl to be passes on to the histogram.php than it should be working perfectly.
drare is offline   Reply With Quote
Old September 6th, 2009, 07:47 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Yes thats correct as the variable is not defined then.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 6th, 2009, 09:00 AM   #14 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
OK, I've placed it now here:
Code:
Content visible to verified customers only.
Just after the title of the photo, where should I place it then?
drare is offline   Reply With Quote
Old September 6th, 2009, 10:24 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
You cant do that unless say for instance your histogram.php file allows you to define the histofile variable via a $_GET instance.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 6th, 2009, 12:16 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
I've done it!! Chuck the problem seems to lie in the fysical location of the histogram.php file. The example above is in a /temp/ map, I placed it there, and guess what, it works!!!

Strange? Yes!, Why? I don't know but does it matter, not to us. For an example surf here: Mijn tong in iets lekkers. - WFC Foto Beeld, de interactieve foto site van Nederland (yes all is Dutch, but surf beneath the photo and see the link: Histogram, click and see the histo in a small new window.

Pffff I can use a druk, wodka seems to be the right choice I think.
Gerard
drare is offline   Reply With Quote
Old September 6th, 2009, 12:32 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
OMG! Mature content! - ReefTalk Gallery

Yeah well might be something server specific

I did what you did in your initial post number 1 and it seems to view perfect on my site.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 6th, 2009, 01:37 PM   #18 (permalink)
Member
Verified Customer
 
Join Date: Feb 2009
Location: Holland
Posts: 116
Hmmm strange title Mature content and I see aquariums , your passion I guess

So, I see, you have implemented the histo into the template, I guess. May I look into the code Chuck to see what you did, maybe I can do the same.
But I think in our case it was just the root on the server that does not work for us.

But something I discovered, the place in my initial post and on your site is beneath the description section, I discovered when nothing is filled in in the description field, the histo will not be shown, like I said in an earlier post, try it out for yourself, maybe not with you.

What do you think Chuck, an addition to future versions of PP this histo, for photographers it is a must, at least for our photographers.
drare is offline   Reply With Quote
Old September 6th, 2009, 01:51 PM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Correct thats why nothing will show if you dont have a description thats right.

IMG_6268_1 - ReefTalk Gallery

Mine is a bit different than yours but you can view my template here

http://www.reeftalk.com/gallery/temp...showphoto.tmpl

I am merely saying mine works unlike yours that was mirrored when you did it in the template
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding more code display information under an Image's "Addition Info" Section globalstrata Photopost Pro How Do I...? 2 May 13th, 2007 10:03 AM


All times are GMT -5. The time now is 06:40 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0