Photo Display Sizes Photo Display Sizes
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Photo Display Sizes

Started by rvblog, January 05, 2005, 03:15:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rvblog

I recently downloaded and I am currently testing the latest version of Coppermine - I created a test album and everything works ok - One thing that I would like to change is the way it displays my photos.

Here is what is happening:

The "Test" album is located in a directory:   Home >> User Galleries >> Admin >> Test

1) When I go to the Test Album the thumbnails in that album are displayed:

example: thumb_pic1.jpg ( 16699 bytes in size )

2) When I click on the thumb_pic1.jpg thumbnail, the next view has a large picture viewer in it with " File 1/10 " at the top and navigational arrows to the right with a larger version of the thumbnail:

example: normal_pic1.jpg ( 181255 bytes in size )

3) Then, when I click on the normal_pic1.jpg, a separate pop-up window opens displaying yet another instance of that photo:

example: pic1.jpg ( 53029 bytes in size )


This is what I would like to do:

First of all, I would like to reverse the photo selection in steps #2 and #3 above - In the large picture viewer that appears when you click on a thumbnail (step #2 above) - I would like the pic1.jpg ( 53029 bytes ) photo to appear instead of the normal_pic1.jpg ( 181255 bytes ) photo - ( I still know lot of people on dial-up and the larger photo takes too long to download )

The result would be: click on the thumbpic1.jpg ( 16699 bytes ) and get the pic1.jpg ( 53029 bytes ) photo to display in the pic viewer - not the normal_pic1.jpg ( 181255 bytes ) photo

Secondly, how do I stop Coppermine from creating the large normal_pic1.jpg ( 181255 bytes) on my server - I just want the thumbnail ( 16699 bytes ) and the regular size ( 53029 bytes ) versions to appear on the server and be displayed in my photo gallery.

The third thing I would like to do is get rid of the pop-up window viewer in step #3 above - How do I disable this feature ??


Thanks

Nibbler

Tried disabling 'create intermediate pics' in config ?

Joachim Müller

Quote from: rvblog on January 05, 2005, 03:15:07 PMI recently downloaded and I am currently testing the latest version of Coppermine
What's the "latest version" for you - it surely is something different for you than for the devs, and it will be something different in the future (if someone comes across this thread when looking for answers to similar issues); that's why you should post your exact coppermine version.

Disabling the full-size pop-up link is easy: edit displayimage.php, find        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
            $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
and replace with            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";


Joachim

rvblog

Sorry,

I'm using version 1.3.2 ( I thought I had covered that when I said "I recently downloaded" given the fact that 1.3.2 has been out since sept 4th - but I will be more clearer next time - thanks for the suggestion)

rvblog

Gaugau:

Here is a link to my test gallery:

<a>http://www.rvadventure.ca/photos/</a>

You will see what I mean when you follow the album links - check the properties of the displayed pics and you will see that the larger size photo appears in the image viewer and the intermediate size appears in the popup - (should it not be the reverse??)

PS: I just did a normal install of Coppermine ver 1.3.2 as per directions - the only thing I played around with was the style sheets as you will see

Thanks

Joachim Müller

I'm not sure what you mean: on http://www.rvadventure.ca/photos/displayimage.php?pos=-39 the pic shown is http://www.rvadventure.ca/photos/albums/uploads/alamo%20b/normal_alamo%2009.jpg (533 x 400 pixels), when you click on the intermediate the pop-up (http://www.rvadventure.ca/photos/displayimage.php?pid=39&fullsize=1) opens, which contains the original pic http://www.rvadventure.ca/photos/albums/uploads/alamo%20b/alamo%2009.jpg (576 x 432 pixels). This is expected behaviour, what excatly is your question?

Joachim

rvblog

Let me try this again - because I'm not talking pixels - I'm talking file size as in bytes and download time

Step 1:

Go to http://www.rvadventure.ca/photos/ and select "User Galleries" in the Category Section at the top.

Step 2:

Selecting "User Galleries" brings you to : http://www.rvadventure.ca/photos/index.php?cat=1
Under "Home > User Galleries" select the "Admin Album"

Step 3:

Selecting the "Admin Album" brings you to : http://www.rvadventure.ca/photos/index.php?cat=10001
Under "Home > User Galleries > admin" select the "Alamo album"

Step 4:
Selecting the "Alamo Album" brings you to : http://www.rvadventure.ca/photos/thumbnails.php?album=4
This section is ok
example: the 1st thumbnail is W:133px H:100px (which I'm not concerned about) and the file size is 16,284 bytes

Step 5:  
Clicking on the 1st thumbnail  brings you to : http://www.rvadventure.ca/photos/displayimage.php?album=4&pos=0
This is where my problem is.
example: this pic is W:533px H:400px - and the file size is 181,255 bytes
I would like the pic that appears in the pop-up window to appear here instead because it is a smaller file.
When a visitor clicks the thumbnail and get this page it takes forever on dial-up to load - the smaller file size would load faster.

Step 6:
Clicking the pic in step 5 gives you a pop-up window.
example: the pic in this window is W:576px H:432px ( yes, larger in pixel size ) - but the file size is 53,029 bytes - a much smaller file size (and less download time) than the pic in step 5 above.


I would like the pic with the file size is of 53,029 bytes to appear in the pic viewer in step 5 in this browser window: http://www.rvadventure.ca/photos/displayimage.php?album=4&pos=0


If you talk pixels, then you are right - it appears that they are in the correct order

But if you talk file size and download time - they are not - as you can see in the file sizes



Hopefully, I've explained this a lot better this time

Thanks for the time it's taking you guys to help me out here


rvblog

Everyone must have gone out for lunch  :D

rvblog

I could still use an answer regarding the display order - Are any of the tech guys around ??

Nibbler

Coppermine doesn't take into account actual byte size. I'm not sure why the resized pics would be heavier really.

kegobeer

Coppermine displays pictures in this order: thumbnail -> normal -> full size image, based on image dimensions and not file size.

If you don't want to create the intermediate pictures, turn off Create intermediate pictures.  To prevent the intermediate images already created from displaying, increase Max width or height of an intermediate picture/video to a number higher than the max width/height of your largest dimension original image.

What do you have Quality for JPEG files set at?  The higher the number, the greater the filesize for the resized images.  You can safely drop this to 70-75 and still have nice looking intermediate images, which should also drop the filesize of the intermediate image quite a bit.  Larger filesizes for intermediate images normally happens when the original image is barely larger than the Max width or height of an intermediate picture/video setting.  Note: This setting has nothing to do with the original image.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

Quote from: rvblog on January 05, 2005, 07:49:59 PM
Everyone must have gone out for lunch  :D
Quote from: rvblog on January 07, 2005, 04:13:26 AM
I could still use an answer regarding the display order - Are any of the tech guys around ??
>:( This is not a hotline - see http://coppermine.sourceforge.net/faq.php#lamesupport

Joachim

rvblog

Thanks Nibbler and Kegobeer for your help and patience,

We 53 year olds tend to ramble a bit and get somewhat impatient at times with all this computer stuff - never had the luxury of learning about computers in school like most of the wiz kids today (wish I knew half of what they do) - Our experience is based on bits and pieces that we pick up over the years - not in any orderly fashion - and sometimes we have to fill the holes - and we have to rely on guys like you who are willing to help us out - and I certainly appreciate your help, that's for sure.



"This is not a hotline - see http://coppermine.sourceforge.net/faq.php#lamesupport"   -   I guess lunch was terrible



Anyways, I was just trying to resolve this issue before deciding whether coppermine will be used for my photo gallery.

I'll check the quality settings and play around with the software a bit more before I decide.

So in summary:

If I  " turn off Create intermediate pictures" - then my album displays will look like this :

thumbnail - album window
normal - album viewer window
no 3rd size pic and no pop up window

Is that correct?

Thanks again

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots