Converting a shell command to a PNG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rew222
Posts: 1
Joined: 2017-01-12T12:44:05-07:00
Authentication code: 1151

Converting a shell command to a PNG

Post 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 ~ $
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting a shell command to a PNG

Post 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.
Post Reply