[Feature Request] Oversize handling for shadowbox

Phoca Gallery - image gallery extension
alex007
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Sep 2008, 17:39

[Feature Request] Oversize handling for shadowbox

Post by alex007 »

Hi,

I just installed the 2.0 beta version of PhocaGallery and tried out the new feature "Shadowbox".
Great way of displaying photos which makes PhocaGallery much more attractive! But what I'm currently missing is the possibility to specify the oversize handling
(in case of photo dimensions exceed the shadowbox). It seems that the "resize" option is used as default. But unfortunately the result looks quite terrible (lot of jpeg artefacts). So I would prefer to specify the "drag" or "none" option.
Therefore my question: could this be implemented as a new option in PhocaGallery?

Thanks and regards,
Alex
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] Oversize handling for shadowbox

Post by Jan »

Hi, sorry I don't understadn, what is "resize" option ... If you mean, that in shadowbox there is used a thumbnail, you can change the thumbnail size, e.g. to original size ...
If you find Phoca extensions useful, please support the project
alex007
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 07 Sep 2008, 17:39

Re: [Feature Request] Oversize handling for shadowbox

Post by alex007 »

Hi Jan,

thanks for your reply. I try to explain my issue more detailed.

Let's assume that I've a photo with 1000x1000 pixel uploaded in my gallery.
This photo is displayed on the website with a thumbnail (thumbnail-resultion doesn't matter).
When I now click on that thumbnail the picture will be opened in the shadowbox.
Let's further assume that I've a desktop (or browser) resulotion of 500x500 pixel.
This means that the picture cannot be displayed with it's original resulotion.
The question now is how is shadowbox dealing with that.

The current used solution is that shadowbox is using "resize" (picture will be downscaled to 500x500px which causes the jpeg artifacts).

Other possible solutions are
- use the resultion of 500x500px and crop the image ("none")
- use the resolution of 500x500px, display a part of the image and let the user drag and move that part ("drag").

I've found the following API description of shadowbox here (note the "handleoversize"-option)
http://mjijackson.com/shadowbox/doc/api ... leoversize

What I would appreciate is and option in PhocaGallery where I can specify the "handleoversize"-parameter.

Regards,
Alex
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] Oversize handling for shadowbox

Post by Jan »

Hi, Phoca Gallery uses the large thumbnail file for displaying it in shadow box ...

I take a look on the API (I don't know when I find time for it :( )

but you can try it now in Phoca Gallery code, the code for handling shadowbox is here:
line 198 +
components\com_phocagallery\views\category\view.html.php

so try to add the handleoversize here, maybe it will work...

Please let me know, Jan
If you find Phoca extensions useful, please support the project
Post Reply