Attention:
We recommend NOT to use PHPTHumb until they released a fixed version!
The current version 1.7.9-200805132119 (released May 28, 2008) has a big security leak.
Attackers can compromise your server.
Secunia rated this vulnerability as "highly critical".
http://secunia.com/advisories/39556/EDIT: 4images Team
This a Tutorial about how to use
PhpThumb on your 4images gallery,
so that you can show up image size of your choice on details.php
Note: { if you are running your 4images gallery on a Shared hosting and you are getting high traffic then just forget it.
because resizing is using a lot of memory if you are planning to have a lot a visitors and lot of pictures..
instead you maybe try this mod [MOD] Resize wallpaper for restrain resize template.
}There are lots of post about
PhpThumb but none of them have clear instructions
and most the guys are getting this error message
phpthumb() v1.7.9-200805132119
"/home/xxx/public_html/xxx/phpthumb/./data/media/26/chapel beach.jpg" does not exist.
because they upload phpthumb files to wrong path
so i think i should post these steps which i followed with the help of
Nicky(Thanks Nicky)
1.) Download phpthumb from this link.
PhpTumb then unzip it and just upload these
9 files to your gallery root
1. phpthumb.bmp.php
2. phpthumb.class.php
3. phpthumb.config.php.default {
dont forget to rename it before uploading to phpthumb.config.php}
4. phpthumb.filters.php
5. phpthumb.functions.php
6. phpthumb.gif.php
7. phpthumb.ico.php
8. phpthumb.php
9. phpthumb.unsharp.php
and
fonts folder to
/captcha/fontsDelete the other remaining files & folders in Phpthumb folder, as they are not required
Which are
/cache <--- Delete it
/demo <--- Delete it
/docs <--- Delete it
/fonts <--- Delete it
/images <--- Delete it
index.php <--- Delete it
2.)open
phpthumb.config.php and
find
$PHPTHUMB_CONFIG['ttf_directory'] = dirname(__FILE__).'/fonts'; // Base directory for TTF font files
change it to
$PHPTHUMB_CONFIG['ttf_directory'] = dirname(__FILE__).'/captcha/fonts'; // Base directory for TTF font files
3.)open
/templates/your template/media/jpg.html and
Find
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
replace it with
<img src="phpThumb.php?src={media_src}&w=800&h=600" border="0" alt="{image_name}" >
Thats it,
you can see the result on these sites as a kind of
demoWallpaperOwner.com
wallp.ape.rs