Ok, got it!
exec('/usr/bin/convert "logogrey.bmp" -colorspace HSL -channel G -separate -format %[fx:mean] info:',$return_info );
echo $return_info[0];
It was the [0] bit as it;s an array being returned.
Search found 5 matches
- 2015-10-01T06:17:57-07:00
- Forum: Users
- Topic: Confused with PHP
- Replies: 4
- Views: 1975
- 2015-10-01T05:57:18-07:00
- Forum: Users
- Topic: Confused with PHP
- Replies: 4
- Views: 1975
Re: Confused with PHP
Thank you. To get a clearer idea I am using
exec('/usr/bin/convert "logo1.bmp" -colorspace HSL -channel G -separate -thumbnail 200x200 -format %[fx:mean] info: ');
I cannot get the 'info' bit returned. I have already looked through the area you mentioned but could not find anything?
exec('/usr/bin/convert "logo1.bmp" -colorspace HSL -channel G -separate -thumbnail 200x200 -format %[fx:mean] info: ');
I cannot get the 'info' bit returned. I have already looked through the area you mentioned but could not find anything?
- 2015-10-01T05:31:05-07:00
- Forum: Users
- Topic: Confused with PHP
- Replies: 4
- Views: 1975
Confused with PHP
Sorry but I'm new to all of this! Using Powershell I can find if PDF pages have colour using: $colour = convert "$PDF" -colorspace HSL -channel G -separate -format %[fx:mean] info: echo $colour 0 = B/W >0 = colour All is well. I want to do this on my hosted website using PHP but don't know how ...
- 2015-09-30T09:33:57-07:00
- Forum: Users
- Topic: PDF page count
- Replies: 2
- Views: 3360
Re: PDF page count
Thanks. I'm not the greatest coder but I put a \n, converted it to a string, searched for the first space and split the string and converted back to an integer - sure someone can do it easier but it does now work!!! $page_count_raw=$(identify -ping -format %n\n c:\mark\temp\count\Test.pdf) $page ...
- 2015-09-30T08:12:09-07:00
- Forum: Users
- Topic: PDF page count
- Replies: 2
- Views: 3360
PDF page count
Dear Gurus, I'm trying to use the command I've read a few times but cannot get it to work properly. I wish to count the pages in a PDF. I have tried: identify -format %n image.pdf However, if it is 2 pages I get 22 If it is 6 I get 666666 If it is 55 I get 555555555555555555555555555555 ...