howto fit full screen images to screen? howto fit full screen images to screen?
 

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

howto fit full screen images to screen?

Started by Striper, January 17, 2004, 10:34:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Striper

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.

Joachim Müller

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

Striper

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.

Joachim Müller

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:
The intermediate page will show a link to a full-size pop-up  (although the address bar is usually hidden), not just a pop-up with the pic url

GauGau

Striper

ok,

thank you for your explanations. now i understand how this works.

bit bit spears

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)