Search found 10 matches

by gustavopi
2016-07-26T07:34:08-07:00
Forum: Bugs
Topic: Page zero issue
Replies: 2
Views: 7722

Page zero issue

For programmers, the first item of a collection is usually the zero. But in my tests, when trying to create a thumb from a PDF document using Ghostscript, the first page got to be 1. $img = new Imagick($pdf.'[0]'); // WRONG :( $img = new Imagick($pdf.'[1]'); // OK :D (this example is from a question ...
by gustavopi
2015-05-24T15:17:16-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

snibgo: where should I use "-verbose"? I want to know why ghostscript can write a jpeg image from a pdf document by command line, using the terminal, but not by ImageMagick call, in a php code, by a http request.
by gustavopi
2015-05-23T11:26:20-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

Ok, magick, but I'm not worry about the quality right now.

I need to know how imagemagick uses ghostscript, as described in my post above.
by gustavopi
2015-05-23T07:47:59-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

I did another test by copying a line from another post of this community: convert -colorspace RGB -interlace none -density 104.6x104.6 -quality 100 -bordercolor white Documento.pdf teste.jpg I just change the file names, I don't know how this convert command works. By typing this in Terminal inside ...
by gustavopi
2015-05-22T12:36:02-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

The $document contains "Documento.pdf[0]". I think is right because the code I show in the first post is working properly in the webserver. The problem is in my local testing server. You can see the in the website http://www.sintran.org.br/ the ImageMagick doing it's magic! In the right side, above ...
by gustavopi
2015-05-21T06:04:29-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

So, this folder I created for testing purposes, I did using FileZilla and set 777 permissions for everything, starting by the folder itself. I think there is no permissions problem here. I add a "Documento.pdf" file to test with the code… <?php $urlArq = "Documento.pdf"; $pag = 0; $largura = 480; $a ...
by gustavopi
2015-05-20T14:33:05-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

Bonzo: the test works!
by gustavopi
2015-05-20T11:41:48-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

Could not find convert, only the .so module inside Mamp. So I decided to install ImageMagic using MacPorts (port install ImageMagick). A lot of things were made, no error were found. So I try the convert test again: convert -verbose /Library/WebServer/Documents/www/sintran/apitaco/edicao-03-005-12 ...
by gustavopi
2015-05-19T18:13:55-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

Re: ImageMagick can't render PDF files to JPEG

It returns: -bash: convert: command not found
by gustavopi
2015-05-19T17:06:36-07:00
Forum: IMagick
Topic: ImageMagick can't render PDF files to JPEG
Replies: 15
Views: 34476

ImageMagick can't render PDF files to JPEG

Hi. I did a simple php code that works in the host: $urlArq = $_REQUEST["url"]; $pag = $_REQUEST["pag"]; $largura = $_REQUEST["w"]; $a = (297/210); $altura = round($largura*$a); $Img = new Imagick(); //$Img->setSize($largura, $altura); $Img->setResolution(150, 150); $Img->readImage($urlArq."[".$pag ...