I don't want "most appropriate".
I want the one that suits my needs.
Magic is okay, when you don't care for the end results.
Search found 11 matches
- 2018-05-16T16:45:06-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
- 2018-05-16T14:43:13-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
Ok, this was my mistake. I should have been more careful reading format descriptions. png48: is binary alpha. I probably had this from a different conversion session, where it was warranted. But in this case it did some weird stuff to the resulting image, like turning background black or losing the ...
- 2018-05-16T13:33:21-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
That explains the behavior. Now, what about my question? Is there a way to preserve alpha while merging layers?
- 2018-05-16T12:41:51-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
+option tells imagick to use default value for the option. I.e. +repage is a shortcut for explicit default of "0x0+0+0". The default background color (if none is specified or found in the image) is white. However, I can't find the mention of default for -alpha. And that seems to be what throw it off.
- 2018-05-16T10:44:09-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
That's not quite the question I have.
In the example above, I've replaced the png:… with info: for illustrative purposes. The saved PNG do match the dimensions shown in text output.
In the example above, I've replaced the png:… with info: for illustrative purposes. The saved PNG do match the dimensions shown in text output.
- 2018-05-16T09:36:47-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
Ok, what's wrong with this code then? + convert -density 300 -define pdf:use-cropbox=true pdf:104U_1.pdf +background +alpha -resize '1366x>' info: pdf:104U_1.pdf PDF 1747x2479 1747x2479+0+0 16-bit sRGB 176138B 0.078u 0:00.084 + convert -version Version: ImageMagick 6.9.9-11 Q16 x86_64 2017-09-30 ...
- 2018-05-16T08:37:53-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
The key point seems to be the "-layers flatten", but when I remove it, -resize does not work either. In what way doesn't "-resize" work? It works fine for me. If you drop cropping, and see the resulting image dimensions, they are 1700-something wide. Your output is: png48:"104U.pdf" This creates a ...
- 2018-05-16T08:06:32-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
I'm back looking for help. I want to extract tube image, and I've basically done so, but I came across an issue. convert -density 300 -define pdf:use-cropbox=true pdf:"104U_1.pdf" -background white -alpha on -layers flatten -resize "1366x>" -gravity north -crop 1024x180+0+180 png48:"104U.pdf" Does ...
- 2018-04-22T07:42:33-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
Re: PDF clipping on the wrong box?
Worked like a charm! Thank you!
- 2018-04-22T06:37:22-07:00
- Forum: Users
- Topic: PDF clipping on the wrong box?
- Replies: 17
- Views: 15922
PDF clipping on the wrong box?
I'm preparing some documents for translation, and came around an issue. This one: http://www.komyokk.co.jp/pdata/tpdf/104U_1.pdf When you look it in the PDF viewer, it correctly shows page boundary as printed. But when you render it with imagick, it adds huge margins to the resulting image. I feel ...
- 2016-02-10T11:43:20-07:00
- Forum: Users
- Topic: Where can I found previous installers?
- Replies: 9
- Views: 20435
Re: Where can I found previous installers?
For latest stable php_imagick 3.3.0, you may download ImageMagick-6.9.3-3-Q16-x ?? -dll.exe , copy/replace all *_.dll files from installed distribution to the PHP root directory and it will work. To silence PHP startup warning, set imagick.skip_version_check = On in the php.ini. You may need to ...