thumbnail size to be original size of the pic?

beholder

Avatar: beholder

2009-08-01 15:00

I't not that often that I come to this board for actual help..

I've noticed one thing with thumbnail sizes. There is no "original size" among them. Imagine I want to have some thumbnails with size '100' and some not resized at all (the size of the original pic would be the size of the thumbnail). If I have sizes of thumbnails of 100 and 200, I'd like to have the actual size select in administration to consist of "100", "200", "original size".

Is there a quick hack to do this without disrupting the whole QC structure? thanks a lot.

» Quick.Cart v3.x

beholder

Avatar: beholder

2009-08-01 15:04

This btw could be a feature of the next version of QC.

kalanta

No avatar

2009-08-02 09:42

I can offer only this changes in general.php Array( 0 => 100, 1 => 200, 2 => '' ); but this is not exactly you want.

beholder

Avatar: beholder

2009-08-02 14:56

Great hack, Kalanta! This works exactly as requested. I'll go check the source to add the last missing bit here.

beholder

Avatar: beholder

2009-08-02 15:21

Allright, the complete hack is here:

1. change $config['pages_images_sizes'] in general.php to:
$config['pages_images_sizes'] = Array( 0 => 100, 1 => 200, 2 => '' );

2. then change in file libraries/Trash.php function throwSelectFromArray(), before the line:
$sOption .= '<option value="'.$iKey.'" '.$sSelected.'>'.$mValue.'</option>';
add:
if ($mValue =="") $mValue = "original";

There you go. Original pic sized 'thumbnails'.

Back to top
about us | contact