AnsweredAssumed Answered

container images; resize through PHP

Question asked by jonas_1 on Nov 27, 2009
Latest reply on Nov 27, 2009 by littledog

Title

container images; resize through PHP

Post

So, I successfully can display an image from container via php by first setting the header: header('Content-Type: image/jpg');

Then, getting the container data in string format from the url: $fm->getContainerData($_GET['-url']);

 

But why can I not read this string data into GD Image using: imagecreatefromstring($fm->getContainerData($_GET['-url']));

 

As images vary in format and pixel size I need to resize them (and save them as thumbnails on the webserver for speedy access). 

 

GD Version: 27

PHP version: 5.2.6  

 

Best regards

Jonas 

Outcomes