July 21st, 2013, 10:05 AM
I have a problem with a picture that isn't displayed in portrait mode if I export the jpeg to png then the orientation in all browsers are correct.
If I use gd tool the conversion to png is fine but orientation not.
I I use imagick I have a converted photo. The conversion is doen manually using convert.
If I do it within PHP I got no output my php code is
[CPAN]$originalFile = "/Applications/XAMPP/xamppfiles/htdocs/rental/upload/20025/IMG_2665.JPG";
$outputFile = "/Applications/XAMPP/xamppfiles/htdocs/rental/upload/20025/IMG_2665_2.png";
$exec = "convert ". $originalFile . " -auto-orient ".$outputFile ;
$check = shell_exec ($exec);[/CPAN]
I checked permissions the path is correct pointing to the convert containing dir.
I tried to install imagick but this was not done properly there is no guidance to do this on the web.
I tried it with brew also. So I am a bit lost now.
Most easy way is try to find out to install imagic properly then I can delete my exec solution.