Re: Create Thumbnail

This is a discussion on Re: Create Thumbnail within the alt.comp.lang.php forums, part of the PHP Programming Forums category; > I'm looking for exactly the following script > http://alt-php-faq.org/local/105/. > But the ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-10-2003
Guillaume JANY
 
Posts: n/a
Default Re: Create Thumbnail


> I'm looking for exactly the following script
> http://alt-php-faq.org/local/105/.
> But the quality of the result is horrible.


replace line $dst_img = imagecreate($new_w,$new_h);
with line $dst_img = imagecreatetruecolor($new_w,$new_h);

you may also build a x2 thumbnail

imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w* 2,$new_h*2,imagesx($src_im
g),imagesy($src_img));

and display it with width=$new_w, height=$new_h

Guillaume
www.designerspace.com



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0