running tshirt in PHP returns .jpg2 and .cache files
Posted: 2015-04-29T18:18:19-07:00
HI,
I'm running Fred's tshirt script in php using exec, and the results are .jpg2 and .cache files.
The data for .jpg2 is the following which seems to be some kind of configuration
I ran the same script in command line and resulted in the correct .jpg file.
Does anyone know why this is happening?
Version: ImageMagick 6.9.1-2
I'm running Fred's tshirt script in php using exec, and the results are .jpg2 and .cache files.
Code: Select all
exec("./tshirt -r '325x325+36+40' -f distort {$url} ../test/tshirt.jpg ../test/test.jpg");
Code: Select all
id=MagickCache
magick-signature=4026865107
class=DirectClass colors=0 matte=False
columns=400 rows=400 depth=8
colorspace=sRGB
compression=JPEG quality=80
page=400x400+0+0
rendering-intent=Perceptual
gamma=0.454545
red-primary=0.64,0.33 green-primary=0.3,0.6 blue-primary=0.15,0.06
white-point=0.3127,0.329
date:create=2015-04-30T03:14:58+02:00
date:modify=2015-04-30T03:14:58+02:00
jpeg:colorspace=2
jpeg:sampling-factor=1x1,1x1,1x1
:
Does anyone know why this is happening?
Version: ImageMagick 6.9.1-2