2

The command works just fine from the shell

/opt/ImageMagick/bin/convert /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/pdfPyflQF /private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/imgRilIdW 2>&1

I got image generated. But if I run it with php exec function I get error

Array
(
    [0] => convert: no images defined `/private/var/folders/nl/9cky1krj5_j7zwm34tfkndd40000gn/T/imgRilIdW' @ error/convert.c/ConvertImageCommand/3212.
)

Seems it's not permission issue. File permissions are 666. Can't figure out what is wrong.

4
  • check the path context. php and/or imagemagik may be interpreting the from root, from imagemagik's location, from the script location, etc.
    – Yorik
    Commented Feb 19, 2016 at 16:39
  • @Yorik But pathes are absolute. How other they can be interpreting? Commented Feb 19, 2016 at 16:40
  • maybe thats the problem. check the context: where is the script calling from, php access those folders, etc.
    – Yorik
    Commented Feb 19, 2016 at 16:44
  • Did you figure it out?
    – Temuri
    Commented Aug 21, 2017 at 22:46

0

You must log in to answer this question.

Browse other questions tagged .