LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-08-2009, 10:18 AM   #1
odimachkie
LQ Newbie
 
Registered: Feb 2009
Posts: 19

Rep: Reputation: 0
PNG to ICO converstion


I've been looking for tasks to put my linux machine to work, and i think i have found one. I downloaded about 1000 png icon files that i would like to use on my windows machine (i still need to use windows, i'm not proficient enough with Debian to switch yet).

These files need to be converted to ISO before windows will use them as icons, so i downloaded something called imagemagick. its description said that it would convert batches of ICO to PNG and vice versa.

thats all well and good, but i cant even run the program. (#imagemagick --help command not found) I have an install of debian without a desktop. just command line. i think imagemagick is supposed to be run from a desktop interface.


1) how do i find out if i can run it from a command line?

2) if i cannot, what other applications out there will do batch conversions from PNG to ICO?

Again, im new at this, so be gentile.

thanks,
 
Old 03-08-2009, 10:28 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
By the looks of it, you're trying to run as root. Use your normal user account for this. How did you install it and what commands are you trying to use for the processing?
 
Old 03-08-2009, 10:53 AM   #3
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,680

Rep: Reputation: Disabled
imagemagick can be run from the command line according to their own description.
Quote:
Description: image manipulation programs
Imagemagick is a set of programs to manipulate various image formats (JPEG,
TIFF, PhotoCD, PBM, XPM, etc...). All manipulations can be achieved through
shell commands as well as through an X11 graphical interface (display).
The dependencies do not include any references to X. So you should be ok running it off the command line.
Quote:
Depends: libbz2-1.0, libc6 (>= 2.7-1), libfontconfig1 (>= 2.4.0), libfreetype6
(>= 2.3.5), libice6 (>= 1:1.0.0), libjpeg62, liblcms1 (>= 1.15-1),
libmagick10, libsm6, libtiff4, libx11-6, libxext6, libxt6, zlib1g (>=
1:1.1.4)
To install it just type
Code:
sudo aptitude install imagemagick
from the command line.
Cheers,
jdk
 
Old 03-08-2009, 11:25 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Imagemagick is not a program in itself, it's a set of programs. The two big ones are "display" and "convert". What you want to use is convert. The basic command should be:

convert image.png image.ico

It will automatically create the new image based on the suffix you put on the output file.

They have good online documentation here.
 
Old 03-08-2009, 09:28 PM   #5
odimachkie
LQ Newbie
 
Registered: Feb 2009
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks everyone for your input.

after reading your posts i quickly felt like a fool... the convert command is very simple to use.

it seems that MOGRIFY was the command i was after... it blew through 1000 files in under a minute.

i have one follow up question.

Aside from checking the ImageMagick website, how exact would i have known that ImageMagick was not a program itself, but a collection of commands? In your answers you seem to know this fact as if it were obvious. do i just need more screen time?

Thanks for your help guys
 
Old 03-09-2009, 01:02 AM   #6
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,680

Rep: Reputation: Disabled
Quote:
Originally Posted by odimachkie View Post
Thanks everyone for your input.

after reading your posts i quickly felt like a fool... the convert command is very simple to use.

it seems that MOGRIFY was the command i was after... it blew through 1000 files in under a minute.

i have one follow up question.

Aside from checking the ImageMagick website, how exact would i have known that ImageMagick was not a program itself, but a collection of commands? In your answers you seem to know this fact as if it were obvious. do i just need more screen time?

Thanks for your help guys
Did you read my first posting?
Quote:
Description: image manipulation programs
Imagemagick is a set of programs to manipulate various image formats (JPEG,
TIFF, PhotoCD, PBM, XPM, etc...). All manipulations can be achieved through
shell commands as well as through an X11 graphical interface (display).
I generated that description by typing
Code:
aptitude show imagemagick
at the command line.
cheers,
jdk
 
Old 03-09-2009, 08:26 AM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
You can also do a search of installed man pages with "man -k keyword" (also usually aliased to "apropos"). It will show you all installed man pages related to the keyword. On my system "man -k imagemagick" (or "apropos imagemagick") lists the actual man page as "ImageMagick". Remember that Linux is case-sensitive.
 
Old 03-09-2009, 02:34 PM   #8
sureshsujatha
Member
 
Registered: Mar 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by odimachkie View Post
1) how do i find out if i can run it from a command line?

2) if i cannot, what other applications out there will do batch conversions from PNG to ICO?


Ans 1) Check the documentation for the software online. It will tell you whether/not they support "command line" execution.

Ans 2) I think Picasa2 should do the trick too.

Last edited by sureshsujatha; 03-14-2009 at 12:31 AM.
 
  


Reply

Tags
batch, convert, icon, png


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
Epoch Converstion mudman69 AIX 1 05-30-2007 11:46 AM
pcx and ico files phantom_cyph General 5 03-24-2007 03:00 AM
how do i edit .ico files? mouse46 Linux - Software 8 01-10-2007 03:13 AM
Webalizer: configure: error: png library not found... please install png. mikeshn Linux - Software 5 01-10-2005 02:28 PM
Where is trashcan_full/empty.png and kmenu.png??? d33pdream Linux - General 2 02-25-2003 11:13 PM


All times are GMT -5. The time now is 02:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration