ImageMagick and subprocess

200 views
Skip to first unread message

Mahmoodreza Aarabi

unread,
Aug 30, 2016, 8:28:38 AM8/30/16
to Python Programming for Autodesk Maya

Hello guys

There is a command based software for converting images and formats named ImageMagick

i created an ui to give artist to use commands of imageMagick easily, when i run command for converting my images, it works until a file has problem, in this way magick give an error that i can’t get it as an exception to handle it.
error: magick: Incompatible type for "RichTIFFIPTC"; tag ignored.TIFFFetchNormalTag’ @ warning/tiff.c/TIFFWarnings/905.`

there is any experience to help?
or using other modules is better than this?
for example OpenImageIO of sony picture, it have module for python?

thanks

Cesar Saez

unread,
Aug 30, 2016, 9:16:53 AM8/30/16
to python_in...@googlegroups.com

Hi,
You have check imagemagick/whatever-app return codes by getting its stdin/stdout/stderr pipes (check subprocess docs, it is straight forward).

Cheers!

Robert White

unread,
Aug 30, 2016, 1:57:19 PM8/30/16
to Python Programming for Autodesk Maya
If you're running this from python, take a look at http://docs.wand-py.org/en/0.4.3/ .
I've not used it myself, but I've had a few people I trust recommend it.

Justin Israel

unread,
Aug 30, 2016, 3:18:24 PM8/30/16
to Python Programming for Autodesk Maya

Yes, OpenImageIO comes with python bindings. We use them at Weta in python, C++,  Go, and command line form.

And yea, that output you are seeing from the ImageMagick binary is a warning on stderr

Justin


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0b50b86f-511c-4e3f-aa84-498cecfdbbd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mahmoodreza Aarabi

unread,
Aug 31, 2016, 12:31:35 AM8/31/16
to python_in...@googlegroups.com
so i should get stderr in subprocess.
ok thanks guy
i will test and say about it

On Tue, Aug 30, 2016 at 11:48 PM, Justin Israel <justin...@gmail.com> wrote:

Yes, OpenImageIO comes with python bindings. We use them at Weta in python, C++,  Go, and command line form.

And yea, that output you are seeing from the ImageMagick binary is a warning on stderr

Justin

On Wed, 31 Aug 2016, 5:57 AM Robert White <robert....@gmail.com> wrote:
If you're running this from python, take a look at http://docs.wand-py.org/en/0.4.3/ .
I've not used it myself, but I've had a few people I trust recommend it.


On Tuesday, August 30, 2016 at 8:16:53 AM UTC-5, Cesar Saez wrote:

Hi,
You have check imagemagick/whatever-app return codes by getting its stdin/stdout/stderr pipes (check subprocess docs, it is straight forward).

Cheers!

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2ZVL98BuyHfzgFtHaoFznahwjPgMWvUhmFJgwX5_t7oA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--


Bests,
madoodia
Reply all
Reply to author
Forward
0 new messages