coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Striper on January 17, 2004, 10:34:04 AM

Title: howto fit full screen images to screen?
Post by: Striper on January 17, 2004, 10:34:04 AM
hi,

maybe anyone can help me with this.
i want to fit the full screen images (if they are larger than screen) to screen size. so that they can be better viewed by users.

if i browse to the pictures by explorer and then open them with ie6 the resizing works, but if i open them out of the coppermine gallery the resizing function of ie6 doesn´t work...

thank you.
Title: howto fit full screen images to screen?
Post by: Joachim Müller on January 17, 2004, 11:39:26 AM
don't upload super-large pics, that's my advice in the first place. As a rule of thumb, your pics should't be bigger than 1024 x 768 pixels.
This issue is as old as the www, and I'm not going into detail, but the problem remains: how is the server to reliably detect the client's screen resolution? Most approaches are done with JavaScript, but JavaScript simply isn't that reliable (users might have switched Scripting off totally in the worst case).

GauGau
Title: howto fit full screen images to screen?
Post by: Striper on January 17, 2004, 11:47:46 AM
ok, thank you.

so i am going to upload smaller pics from now on.

but why doesn´t the resizing function of ie not work to pics in coppermine?

for example -> here it works:

http://nathancheng.com/grandcanyon/06-15-awesome-canyon-view.jpg

this pic is 1536 x 1024

but out of coppermine it does not.
Title: howto fit full screen images to screen?
Post by: Joachim Müller on January 17, 2004, 12:19:32 PM
the auto-resizing only works in IE on a single picture (like jpg, gif, png etc.), but it doesn't work on pics that are embedded in html. The Pop-Ups in Coppermine aren't simply images, but actually html. As you seem to be reluctant to give away a link to your gallery, I'll ilustrate this with pics from our demo (http://coppermine.sourceforge.net/demo/):
The intermediate page (http://coppermine.sourceforge.net/demo/displayimage.php?pos=-36) will show a link to a full-size pop-up (http://coppermine.sourceforge.net/demo/displayimage.php?pid=36&fullsize=1)  (although the address bar is usually hidden), not just a pop-up with the pic url (http://coppermine.sourceforge.net/demo/albums/userpics/10002/fruit_xx.jpg)

GauGau
Title: howto fit full screen images to screen?
Post by: Striper on January 17, 2004, 12:56:42 PM
ok,

thank you for your explanations. now i understand how this works.
Title: Here is how you can do it-
Post by: bit bit spears on January 18, 2004, 02:13:19 AM
Yes, I know that all of us want to use the hq pics, and now you can!
Follow these simple instructions:

"Mod: Scaling down large images to fit on screen in popup"

Use that mod in the hacks forums to display the images to fit them to full screen or whatever.

Next: Remove the following from the display pic line>

width=$dwidth or whatever and height=$dheight

(This removes the picture restraints being displayed)

Then~> save that file ('displayimage.php' , upload it.

Upload a smaller version of the picture that you want to be shown (the hq pic)

Then~> go into your ftp program, and replace the 'full size of that pic' with the one you uploaded, and viola! coppermine shows a FULL Screen pic!

Here you go! (until it is probably deleted or moved)