Search found 8 matches

by fRAiLtY-
2012-06-12T00:24:55-07:00
Forum: IMagick
Topic: Imagick usage for simple image attributes
Replies: 5
Views: 15996

Re: Imagick usage for simple image attributes

Hi, The problem is getImageColorspace() returns an integer, I guess I could switch/case it but I was hoping for a better solution from the wrapper! Telling me the colorspace is 1 is little help, I wanted to know whether it's RGB or CMYK, but as I say if necessary I'll switch/case it. As regards the ...
by fRAiLtY-
2012-06-11T11:38:40-07:00
Forum: IMagick
Topic: Imagick usage for simple image attributes
Replies: 5
Views: 15996

Imagick usage for simple image attributes

Hi guys, I'm trying to return the following image attributes: Resolution (in dpi): xxx Colorspace: xxx Size (mm): xxx At the moment I can get the resolution by doing the following: <?php echo str_replace(' PixelsPerCentimeter','',round(exec("identify -format %x x %y -units PixelsPerInch $_uploa...
by fRAiLtY-
2011-05-20T01:27:21-07:00
Forum: Users
Topic: Converting PDF and -path variable!
Replies: 13
Views: 27008

Re: Converting PDF and -path variable!

However as both images are saved to jpg direct writing even without an internal clone should be fine.. convert test.pdf -write test.jpg -thumbnail 64x64 thumbs/test_thumb.jpg Hi, I've just tried this and no luck. I am getting the right result on the first set of jpegs as they are coming out correct...
by fRAiLtY-
2011-05-19T08:30:06-07:00
Forum: Users
Topic: Converting PDF and -path variable!
Replies: 13
Views: 27008

Re: Converting PDF and -path variable!

Hi Bonzo, I've echo'd out my variables to check and they contain what I'd expect them to contain, however it only creates one jpeg in the main directory, nothing in the thumbs directory, hence why I questioned the ImageMagick part? Using my code: $targetFile = test.pdf $large = test.jpg $thumbnail =...
by fRAiLtY-
2011-05-19T04:04:30-07:00
Forum: Users
Topic: Converting PDF and -path variable!
Replies: 13
Views: 27008

Re: Converting PDF and -path variable!

Hi, thanks again. Is that second line right? I ask because on executing that code it creates 1 jpeg of the first page, and no thumbs in the thumbs directory. Also the thumbnails would need _thumb.jpg adding on the end of the filename. What about this? $large = substr_replace($targetFile , 'jpg', str...
by fRAiLtY-
2011-05-19T00:48:44-07:00
Forum: Users
Topic: Converting PDF and -path variable!
Replies: 13
Views: 27008

Re: Converting PDF and -path variable!

Hi, thanks for the replys. So my "image" that I'm inputting is called $targetFile, but also the output is the same name just with a JPEG extension, which is this: substr_replace($targetFile , 'jpg', strrpos($targetFile , '.') +1); I want to convert all pages of that $targetFile (likely to ...
by fRAiLtY-
2011-05-18T08:16:52-07:00
Forum: Users
Topic: Converting PDF and -path variable!
Replies: 13
Views: 27008

Converting PDF and -path variable!

Hi guys, Currently I'm using ImageMagick to convert PDF's into jpegs with the aim of creating 2 jpegs on the fly, 1 a regular sized jpeg and 1 a thumbnail. Here's where I am currently. This code below successfully creates jpegs of all the pages in the pdf ($targetFile) and renames them with the jpeg...
by fRAiLtY-
2011-05-18T08:15:30-07:00
Forum: IMagick
Topic: Using -path and creating multiple images
Replies: 2
Views: 9852

Using -path and creating multiple images

Hi guys, Currently I'm using ImageMagick to convert PDF's into jpegs with the aim of creating 2 jpegs on the fly, 1 a regular sized jpeg and 1 a thumbnail. Here's where I am currently. This code below successfully creates jpegs of all the pages in the pdf ($targetFile) and renames them with the jpeg...