Hi,
Can we upload PDF file then convert to image to generate thumbnail?
I’m trying to user imagemagick to complete this task.
So far, i manage to use imagemagick via command line (conver a.pdf thumb_a.jpg).
But not able to use execute it via php using exec on event on before process…
this is my code:
$nm_file = $_SESSION['scriptcase']['form_test_file']['glo_nm_path_doc']."/".{file_uploaded};
$nm_file_thumb = $_SESSION['scriptcase']['form_test_file']['glo_nm_path_doc']."/thumb_".{file_uploaded};
exec("convert \"$nm_file[0]\" -flatten -colorspace RGB -geometry 200 $nm_file_thumb");
Please help…