LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-12-2006, 07:07 PM   #1
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Rep: Reputation: 15
ImageMagick - convert


Hello

I have ImageMagick installed and i'm really trying my hardest here, I want to convert a png file which has a Bit depth of 32 bps to a png file with 24Bps

Are there any image experts out there who could tell what the proper command is.

so far im trying

convert -depth 24 name.png name1.png

But for some bizare reason it now tells me that it has a bit depth of 64Bps

Please help
 
Old 06-13-2006, 06:19 AM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,052

Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
This is the description of the -depth parameter in convert:

Quote:
This is the number of bits in a color sample within a pixel. The only acceptable values are 8 or 16. Use this option to specify the depth of raw images whose depth is unknown such as GRAY, RGB, or CMYK, or to change the depth of any image after it has been read.
24 is an invalid value, although you have 24 bps. I think what you want is a depth of 8, e.g. 8 bits per color, totalling to 24 bits per sample.

On the other hand, how can the format that you have ever be 32 bits? Is it RGBA? But then the depth is still 8 bits, and besides, it is an internal PNG representation.

jlinkels
 
Old 06-13-2006, 07:44 AM   #3
cornish
Member
 
Registered: May 2005
Location: Sussex, England
Distribution: Ubuntu 7.10
Posts: 131

Original Poster
Rep: Reputation: 15
The picture is off a cursor used in a game, wine wont display it because its 32 bit pixel
 
Old 06-13-2006, 08:26 AM   #4
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,052

Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
But then again, PNG is PNG and convert only understands depths of 8 bits and 16 bits.

If your WINE appliction complains that is is 32 bits, it certainly uses another method of bit counting than convert.

It appears to me that your WINE application is not able to read PNG, at least not the PNG as is written by the application you created it with.

Can't you convert your PNG to JPG, BMP or GIF?

jlinkels
 
  


Reply


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
ImageMagick-Convert, resize width, keep aspect cadj Linux - Software 2 06-18-2010 05:10 PM
Imagemagick convert yields blank image jlinkels Linux - Software 4 05-05-2006 08:41 AM
ImageMagick - how to convert green pixels to red? BrianK Linux - General 1 03-24-2006 09:26 PM
imagemagick or pcdtoppm script to convert pcd to jpeg? jst1 Linux - Software 1 02-01-2006 05:26 PM
Using ImageMagick Convert RGB -> indexed colors paulsm4 Programming 0 01-17-2006 04:06 PM


All times are GMT -5. The time now is 06:31 AM.

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