LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 04-07-2021, 07:02 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,233
Blog Entries: 28

Rep: Reputation: 161Reputation: 161
software i'm looking for


i am on the hunt for a command line program that takes an image file in one of the major image formats (at least gif, jpg, and png) and draws a straight line in it, vertical or horizontal, at the specified position, in the specified color. or as an alternative, one that draws a rectangular box at a specified position and size in a specified color. i need to do this as part of an automated script so i need to find one that is totally non-interactive.
 
Old 04-07-2021, 07:07 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,920

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
Imagemagick will do all that loads of examples on the web, it should be in your distros repos
 
Old 04-07-2021, 07:23 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,185

Rep: Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946Reputation: 3946
ImageMagick's convert utility can add basic lines and rectangles to images using its draw option.

I've played with jpg and png files a little.

Too late...
 
Old 04-08-2021, 10:11 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Xubuntu
Posts: 5,741

Rep: Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115Reputation: 2115
There's a user guide available: ImageMagic
 
  


Reply

Tags
command line


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for fast, simple yet good looking window manager Muddy Linux - General 12 06-16-2003 10:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration