Page 1 of 1

Converting a shell command to a PNG

Posted: 2017-01-12T12:56:21-07:00
by rew222
I wrote a script several years ago that converts the date to a PNG, but for some reason it's no longer working and I cannot figure out why. Any help would be appreciated.

mint-vm ~ $ convert -version
Version: ImageMagick 6.7.7-10 2016-11-29 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

mint-vm ~ $ convert -fill white -background black -transparent black -pointsize 18 label:"$(date '+%m/%d/%y %r')" date.png
convert.im6: no images defined `date.png' @ error/convert.c/ConvertImageCommand/3044.
mint-vm ~ $

Re: Converting a shell command to a PNG

Posted: 2017-01-12T14:24:25-07:00
by fmw42
That is a very old version of IM (over 200 versions old) and at a time when IM was undergoing some major changes. I would urge you to upgrade. Also you do not list the delegates available. Try convert -list configure. Or convert -list format. See if you have a PNG delegate or libpng. From the latter command you can see what version you have of libpng. Perhaps you need to upgrade your libpng delegate. Upgrading everything would be the best, since IM is so old.