Categories > OpenTBS general >

images from php file

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Arnold
Date: 2014-02-03
Time: 18:25

images from php file

Hello,

i was wondering can i use a php file as an image to merge?
for example /image.php (with or without extra arguments ?type=...&..)
inside the php file:
    header('Content-Type: image/png');
    imagepng($dest);
or do i have to make a temporary image file?

By: Skrol29
Date: 2014-02-03
Time: 23:24

Re: images from php file

Hi Arnold,

I guess this is about OpenTBS.
Parameter "changepic" works only with a true file image.

Nevertheless, you can use the trick of calling TbsZip feature for replacing the image contents as you wish in the document.
See http://www.tinybutstrong.com/plugins/opentbs/tbs_plugin_opentbs.html#modify_files
By: Arnold
Date: 2014-02-04
Time: 10:23

Re: images from php file

Thanks Skrol,

indeed it was about OpenTBS, sorry for not mentioning.
i've tried you're solution, it worked like a charm. thanks.