Page 3 of 3

This is how I modifi

Posted: 06 Apr 2008, 12:07
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

Hi, thank you... I t

Posted: 06 Apr 2008, 18:33
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...

yes, I take a look a

Posted: 26 May 2008, 17:03
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 ???