Forum Moderators: coopster

Message Too Old, No Replies

Converting images in PHP

Image convert class & error

         

tabish

8:07 am on Nov 28, 2006 (gmt 0)

10+ Year Member



Hello All,

I am using one PHP class which converts gif,png,swf images into Jpg and other format.

When i use this class on a single php page, it works fine but as soon as i include this class in between my webpage i get error like:

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'test.jpg' for writing in /home/domain/public/includes/func/class.php on line 148

If i call this class on a single page where there is no other PP tags, it works like charm.

Please let me know what should i do?

Regards

omoutop

9:16 am on Nov 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi. It seems to me that there is a "path problem".
Is test.jpg' located in /home/domain/public/includes/func/?

If not, make sure you define the right path for the class to use.