Output wild card use in PHP exec
Posted: 2015-07-06T21:00:06-07:00
Maybe you can help me with one more thing. I'm trying to dynamically name my files with numbering but I can't get the wildcards to work.
This is my EXEC code:
EvilErnie_04_Page_%+02d-1.jpg
Thoughts?
This is my EXEC code:
- $new_file = $dir_name . '/' . $file_name_base . '_Page_';
$cmd = '/usr/local/bin/convert ' .
' -density ' . $compression .
' -profile USWebCoatedSWOP.icc ' .
$file_name .
' -profile sRGB_v4_ICC_preference.icc ' .
' -scene 1' .
' -trim ' .
' -resize x1732 ' .
' -quality ' . $compressQuality .
' ' . $new_file . '%+02d'. $ext;
EvilErnie_04_Page_%+02d-1.jpg
Thoughts?