"View full size" is bigger, but definitely not "full size"

Larry Menard
Larry Menard's picture

Joined: 2005-10-01
Posts: 757
Posted: Mon, 2010-10-25 21:24

Folks,

Some of the photos I uploaded are large (for example, 3888 x 2592, and 3,175,910 bytes). They show up OK in the normal photo viewing page, but when I click on "View full size" they are bigger, but still far from "full size".

If I view the files directly from the var/albums directory, they appear fine.

I'm having this problem on both of my Gallery3 installations... one on XP, the other on a 64-bit Ubuntu VM. (Please don't just tell me XP is not supported, I know. That's why I reproduced it on the 64-bit Ubuntu.) On both systems I'm using MySQL 5.1.51, PHP 5.3.3 and Apache 2.2.16.

On the XP system I'm using GD as the graphics toolkit because like many other people, ImageMagick and GraphicsMagick wouldn't work.

I'm pretty sure the 64-bit Ubuntu bit it is using either ImageMagick or GraphicsMagick as the graphics toolkit, but I can't be certain right now as I've misplaced the admin credentials for that installation. Both IM and GM are installed though.

So I'm pretty sure it is either PHP or Gallery that is limiting the size of the "full size" image I'm getting.

There's only one single line in the gallery log:

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

I suspect sure that's unrelated to the "full size" problem.

Back in Gallery 2 I used to know where the gallery config file was for turning on debug logging, but it's all changed now.

Anybody have any ideas why the "full size" images are still way smaller than the originals?

Thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-10-25 21:32

What theme are you using?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Larry Menard
Larry Menard's picture

Joined: 2005-10-01
Posts: 757
Posted: Mon, 2010-10-25 22:13

Just the default.

I did a bit more testing and it turns out the image size is being limited by the browser size... it is being shrunk such that it fits within the browser.

On XP I'm using IE8 but on Ubuntu64 I'm using Firefox.

And I've now confirmed that on Ubuntu I'm using GraphicsMagick (I remembered the password).

Thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-10-26 00:16

You know what, now I have to double check. This has been changed a couple of times. It's purely the behavior of the theme and if you don't like it you can change it, but there is not a configuration option for it.

Yeah, I believe the behavior you are seeing is the correct and intended behavior, IIRC, that if the image is larger than the screen resolution it's scaled down (using javascript) to fit the screen. If it's smaller than the screen resolution it's left alone.

If you want to change this, copy the Wind theme to create your own theme (otherwise any future upgrades to G3 will overwrite your changes)
http://codex.gallery2.org/Gallery3:Tutorials:Themes

views/photo.html.php contains some of the logic to control this as well as a reference to "g-fullsize-link" which I believe if you remove that css class name from the link, it just won't do that.

views/page.html.php also loads the javascript that does the work.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Larry Menard
Larry Menard's picture

Joined: 2005-10-01
Posts: 757
Posted: Tue, 2010-10-26 12:35

Thanks nivekiam, I'll give it a shot.

I would suggest then that the naming of that button is misleading. I'd suggest changing it to "Enlarge". Even "Maximize" might be acceptable because you're maximizing it to the size of the browser, but that's pretty weaselly. :-) "Full size" is definitely wrong though.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2010-10-26 14:38

Please file a ticket so we don't loose track of this. It has been mentioned before and is confusing to some users.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team