[feature support] PicLens support

Phoca Gallery - image gallery extension
thomric2
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 06 Apr 2008, 11:54
Location: United States of America
Contact:

This is how I modifi

Post by thomric2 »

This is how I modified the image size of the content and link for the piclens RSS creation.

in administrator\components\com_phocagallery\models\phocagalleryc.php I modified function piclens() . In the foreach ($rows as $krow => $vrow) loop I added this line under $file:
$origfile = str_replace("//", "/", str_replace( "../", "/", $file['path_with_name_relative'] ) );

I then modified $item->appendChild( $this->_buildXMLElement( 'link', $thumb_image_path) ); to be:
$item->appendChild( $this->_buildXMLElement( 'link', $origfile ) );

And lastly I modified $content->setAttribute( 'url', $thumb_image_path); to be:
$content->setAttribute( 'url', $origfile );


This now lets piclens use the original sized file for the image when the image is targeted in piclens. Also, when the link button is pressed at the top of the piclens page it will now open up the original sized image. I really believe that since piclens will already resize the image based on your monitor's resolution, you might as well provide it with the full sized image.

I would recommend that these 3 changes be made to the next release of phoca.

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

Hi, thank you... I t

Post by Jan »

Hi, thank you... I think, it depends on users... they can use standard Phoca Gallery with large thumbnail (compromise between speed and quality)...

They can choose speed (small thumbnail) or quality (your solution) ...


There are thousands of changes, user will have in Phoca Gallery ... I cannot do thousands of parameters (because it can be confusing) and I cannot select e.g. the solution which gives priority to e.g. quality against speed... I must select the compromise and if user wants to have quality images which will be slowly downloaded, he must do it as you did it...

Thank you for this solution, I hope, it will help other users...
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

yes, I take a look a

Post by Jan »

yes, I take a look at this for the next version... but the question is, what an option:

original image:
thumbnail - large image
image - original image

thumbnail image:
thumbnail - large image
image - large image

or
original image:
thumbnail - original image
image - original image

thumbnail image:
thumbnail - large image
image - large image

or
original image:
thumbnail - large image
image - original image

thumbnail image:
thumbnail - medium image (only e.g. 100x100 ???)
image - large image

or ???
If you find Phoca extensions useful, please support the project
Post Reply