Jump to content

Cannot use plugins with PHP Thumb


keevitaja

Recommended Posts

Hello,

 

i keep getting this error with PHP Thumb watermark plugin. Can anyone help? maybe i'm doing it wrong!

 

php thumb: http://phpthumb.gxdlabs.com/download.php

watermark plugin: http://phpthumb.gxdlabs.com/forums/topic/watermark-plugin

 

my code:

 

<?php
require_once 'ThumbLib.inc.php';

$thumb = PhpThumbFactory::create('image.jpg');
$thumb->adaptiveResize(400, 400);
$thumb->createWatermark('watermark.png', 'cc', 10);
$thumb->show();
?>

 

the error i get:

Warning: Parameter 4 to GdWatermarkLib::createWatermark() expected to be a reference, value given in C:\xampp\htdocs\new\includes\phpthumb\ThumbBase.inc.php on line 212

 

Fatal error: Uncaught exception 'RuntimeException' with message 'Cannot show image, headers have already been sent' in C:\xampp\htdocs\new\includes\phpthumb\GdThumb.inc.php:569 Stack trace: #0 C:\xampp\htdocs\new\includes\phpthumb\proov.php(7): GdThumb->show() #1 {main} thrown in C:\xampp\htdocs\new\includes\phpthumb\GdThumb.inc.php on line 569

Link to comment
https://forums.phpfreaks.com/topic/182886-cannot-use-plugins-with-php-thumb/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.