PDA

View Full Version : EE 1.5 Setup of VIEWER TYPE RULES for panorama pictures


TomKa
29th of July 2003 (Tue), 00:44
A big compliment for the new version !

To set up the viewer type "PTViewer" to display panorama pictures do I have to edit the settings in the file photo.php (>line 1779) to call the specific files in /viewerstyles or did I miss some option in the photo editor (panorama=yes/no)?

It would be fine to set up the viewer type for a specific exhibition, or, even better, to associate the viewer type for individual images.

Thomas

TomKa
29th of July 2003 (Tue), 12:27
Ok, I figured it out:

setting the options in fetchsettings.php line 37
$s_use_pt_pano = "1";
$s_use_pt_flat = "0";
$s_make_pt_files_local = "0";

The ptviewer applet must be in the root directory of the gallery.

It is possible to set up a wait-image, a loading bar and other options with the file PTDefault.html (http://ptfaq.org/fom-serve/cache/83.html) (put it in the same directory as the ptviewer applet).

Pekka
30th of July 2003 (Wed), 03:11
And if you use

$s_use_pt_flat = "1";

and have ptviewer applet installed you have normal image display with zoom in and out.

It would be fine to set up the viewer type for a specific exhibition, or, even better, to associate the viewer type for individual images.

It can be coded (and will be), but I'd like to at least try to find ways to avoid excessive setting up.

Now if image is marked "panorama" it uses applet if installed as you said.

When $s_try_pt_crypt = "1" EE looks for .jpa instead of .jpg and if it finds .jpa it loads it into decrypt applet.

$s_ftp_view = "1" downloads photo into temp directory with random filename, to hide file origin.

Panorama tools requires that files for it are on same server, but if you set $s_make_pt_files_local = "1" EE will use ftp_view system to download photo to local temp and give it to Panorama tools from there.

TomKa
30th of July 2003 (Wed), 03:38
Thank you Pekka, the settings for the PTViewer are working.

In the folder viewerstyles I had a look at the file flash.php. These settings can be easyily modified to display also Quicktime Movies or to incorporate other viewers.

To call another type of viewer to display, for example, flash movies via flash.php (Quicktime or Zoomify content) do I have to modify the file fetchsettings.php ?

Pekka
30th of July 2003 (Wed), 09:03
TomKa wrote:
Thank you Pekka, the settings for the PTViewer are working.

In the folder viewerstyles I had a look at the file flash.php. These settings can be easyily modified to display also Quicktime Movies or to incorporate other viewers.

To call another type of viewer to display, for example, flash movies via flash.php (Quicktime or Zoomify content) do I have to modify the file fetchsettings.php ?


Currently the viewerstyles are on three places in code:

In fetchsettings.php you set them on of off.

Rules for choosing them (and turning other off if needed) are in photo.php after 1772

In photo.php you actually include the viewerstyle in 2032 onwards.

Viewerstyles may of course use any of their own codes, but mostly I have used:

// $url = clean http address to image
// $file = filename
// $im_width = width
// $im_height = height
// $im_sizetag = width + height tag in html


Flash viewestyle is something I did not finish now as it would require a simple flash movie which only would display one image, and actionscript for giving it url and other parameters.

Peter Pan
4th of August 2003 (Mon), 17:48
Mmm, I can't figure out how to make it work. Can you tell me exactly which jar/class files I need, where I have to upload them (my photos are in /photos/normal/) and which files to modify ? Thanks !

Pekka
4th of August 2003 (Mon), 18:21
Peter Pan wrote:
Mmm, I can't figure out how to make it work. Can you tell me exactly which jar/class files I need, where I have to upload them (my photos are in /photos/normal/) and which files to modify ? Thanks !

For panoramas:
download http://www.path.unimelb.edu.au/~dersch/PTVJ.zip and place ptviewer.jar in your gallery root directory (folder where you can see fetchsettings.php).

Then, in fetchsettings.php around like 37 change

$s_use_pt_pano = "0";
$s_use_pt_flat = "0";
$s_make_pt_files_local = "1";

to

$s_use_pt_pano = "1";
$s_use_pt_flat = "1";
$s_make_pt_files_local = "1";

And you have full PT viewer system active. If you need it just for panoramas do

$s_use_pt_pano = "1";
$s_use_pt_flat = "0";
$s_make_pt_files_local = "1";

And if you have the photo files on same server as ee you can use also

$s_make_pt_files_local = "0";

Peter Pan
4th of August 2003 (Mon), 18:40
Ok, so that's what I had been trying but when I click on a photo I tagged as a panorama in the photo editor, nothing happens and the browser times out.

So, to make things clear :

- my gallery is installed in /photos/
- big pictures are in /photos/images/normal/
- ptviewer.jar is in /photos/
- I use :

$s_use_pt_pano = "1";
$s_use_pt_flat = "0";
$s_make_pt_files_local = "0";



Another problem, maybe it's related : if I try to use $s_ftp_view = "1"; to hide paths it does exactly the same thing, the browser times out.

Peter Pan
5th of August 2003 (Tue), 09:53
I did some testing : I deleted pt_panorama.php and obtained the same result, so it seems the error must be before that point. It looks as if there is a communication problem between photo.php and pt_panorama.php.

Pekka
5th of August 2003 (Tue), 12:32
Peter Pan wrote:
I did some testing : I deleted pt_panorama.php and obtained the same result, so it seems the error must be before that point. It looks as if there is a communication problem between photo.php and pt_panorama.php.

Put debug mode on in fetchsettings.php

$debug = "1";

Now you should see

viewertype info before the photo area. Like

$viewertype = pt_panorama (string)

Just occurred to me: are you able to RUN Java? You know, Windows does not include Java any more, you need to install it separately from sun.com

Peter Pan
5th of August 2003 (Tue), 12:51
The problem is the page doesn't even load, so I could not see debug infos.

I compared PHP files with TomKa (thanks again for your help !) and we have exactly the same files and configuration. To be sure, I uploaded his photo.php, fetchsettings.php and pt_panorama.php.

I put the applet part of the code in an HTML file (with the direct path to the photo) and the applet load correctly, so that must be some problem in photo.php as it doesn't seem to find pt_panorama.php.

chriz
6th of August 2003 (Wed), 03:06
I just published some panoramas on my website without a problem whatsoever.

http://ee.photoplus.nu/list.php?exhibition=60.

Just a question thought, which upload directory should I choose. (I choose the default directory for now)
Also, does ee resize my panoramas ?
And finally the microthumbs are real small, can this be changed just for the panorama pictures ?

Chriz

TomKa
7th of August 2003 (Thu), 00:54
My upload directory is outside the EE root:

root/EEgallery
root/pano

my path settings are

../../pano/thumb
../../pano/microthumb

I do manual resizing btw

chriz
7th of August 2003 (Thu), 10:02
After uploading my panoramas, I copied the files in the directory /thumbs to /microthumbs

The idea was to get bigger microthumbs on the initial photopage.

Also I copied the original 200kb+ panoramas to my default directory /albums/normal

Using UPLOAD TO DATABASE resizes the panoramas and I wanted them in the original size.

This is the error that came up when going into photo editor

Exhibit Engine MySQL error!
ERROR FROM QUERY getingredients in page 'photoeditor':

------------------------------
Unknown column 'ee_photo_header' in 'field list'
------------------------------

Is this because of my replacing the pictures manually ?

Chriz

melor
12th of October 2003 (Sun), 22:44
Glad I found this thread!

Paul