showing images showing images
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

showing images

Started by utu, March 11, 2010, 01:59:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

utu

Hello, how is possible to show the images in the original size, without the window resizing?
My gallery is here:
http://claudiorampini.com/cpg/displayimage.php?album=lastup&cat=0&pid=3418#top_display_media
Thank you
Claudio

Joachim Müller


utu

Thank you for your reply.
I unchecked "Create intermediate pictures", now the embedded picture shows in real size. But is it possible to show the real image in the pop up window? In the older versions of Coppermine, when the max size was established at 1600px, then the pop up window was at 1600px. Now the pop up window shows a smaller image to optimize space in my 22" monitor and I have to click on "view image" on the right menu of firefox to see the real size. I don't want that "optimization".

Joachim Müller

You're wrong in this aspect as far as I can say: the pop-up will display the full-sized image, in the same way it did in previous versions if your full-size image is larger in terms of resolution as your intermediate. Nothing has changed in this aspect. If your browser has got a feature to resize large pics to fit on the screen, then we can't be blamed: that's something your browser does.

utu

I don't blame anything, this new version of Coppermine is beautiful and I'm enjoying it! So I'll go to investigate inside the firefox config.
Thanks again.

Joachim Müller

What would be the purpose of changing your browser setup? In which aspect will this change the way your visitors will perceive your gallery?

Joe Carver

I think (but am not 100% certain) that this resizing is driven by file: js/displayimage.fullsize.js. It seems
to do a nice job of getting the available window size for the user's browser.
It ends with:     adjust_popup();

@utu, You could adjust/customize your theme.php by adding this section to your custom theme - get it from themes/sample/theme.php:
/******************************************************************************
** Section <<<theme_display_fullsize_pic>>> - START
******************************************************************************/
// Display the full size image

CODE CODE CODE CODE CODE

/******************************************************************************
** Section <<<theme_display_fullsize_pic>>> - END
******************************************************************************/


Find the line that reads:
       <script type="text/javascript" src="js/displayimage.fullsize.js"></script>
Remove the line. Save your custom theme.php.

Remember to add the complete section/function to your custom theme after making a backup copy.

In my opinion it seems to be a 'non-visitor friendly' modification and could possibly be done with a plugin.
But since it is your site and they will be your visitors - I can only say good luck and .."no warranty with this post" (it worked for me just now)

utu

@Joachim: usually I upload hires photos on my gallery to show the stringed instruments to my visitors, they want see the grain of the wood and other smaller things. If I upload a 1600x1200 photo, would be not so good if it will be reduced at 900x700.

@Joe: thank you very much, your adjustment worked! :)