hi

i have a usps lebel which give me encode string in tiff or pdf
i decode this string from base64();

i found there is a method to show gif or jpg

echo '<img src="data:image/gif;base64,'. $author[1][0]. '"/>';
is there is way to show tiff direct?

or

in gd library there is function which convert string to image

1-- imagecreatefromstring() /// convert string to image
2---- imagegif() //for disppaly and save the image

is there any function which create image from string and than save into tiff extension?

thanks for Help