Based on wiki DDS could be compressed and uncompressed.
Now I'm trying to figure out how to achive converting png to dds without compression.
Regular converting could be achived with
convert file.png out.dds
It looks like you found a missing feature in ImageMagick. This is now only supported:
convert file.png -define dds:compression=none out.dds
But the following should work:
convert file.png -compress none out.dds
I just pushed a patch to the ImageMagick repository to add support for the -compress option that will be available in the next release.
Related
My batch script generates a bmp preview image using imagemagick and I want to display it in a cmd window using cmdwiz but it won't show up.
I tried generating a png then converting it to a bmp with "-type truecolor" but it didn't work. It did work when I converted the png using MS Paint though.
You need to establish the difference between the BMP that ImageMagick generates and the BMP that MS Paint generates to deduce what you need to tell ImageMagick to do differently. So, use:
magick identify -verbose IM.BMP > IM.TXT
magick identify -verbose MSPAINT.BMP > MSPAINT.TXT
Now use whatever tool Microsoft supplies to find the difference between IM.TXT and MSPAINT.TXT.
As an alternative, you can use exiftool, i.e.
exiftool IM.BMP
exiftool MSPAINT.BMP
I have been trying to convert JPG image which is in CMYK format to sRGBformat with imagemagick library in Ruby on Rails.
But unfortunately, observed that quality of the image degraded after convertion of image by following command:
MiniMagick::Tool::Convert.new do |convert|
convert << attachment.tempfile.path
convert.merge! ["-colorspace", "srgb"]
convert << attachment.tempfile.path
end
Is there anything missing here? and looking forward to avoid the deviation.
Please let me know your ideas.
You can try to use the ImageMagick -profile option for better conversion:
convert image.jpg -profile sRGB.icc rgb_image.jpg
You can look here for more details on ImageMagick.
I have a problem using the tool convert (imagemagick) to remove metainformation of pictures to make them smaller for faster delivery in websites.
When I use the convert command with following parameters:
convert -format png -strip pic1.png pic2.png
then the converted picture is much more darker than the original one.
I also tried to require the colorspace of the original picture with:
convert -format png -colorspace sRGB -strip pic1.png pic2.png
but it's the same problem.
Has anyone an idea how to solve it?
These are the example pictures:
(Original) Pic1:
(Converted) Pic 2:
The problem is the installed version 6.7.7 of ImageMagick (Standard-Version of Linux Mint 17)
In version 6.4 and (said in comment) in version 6.9 it works.
So the 6.7.7 version is buggy in that case.
I have a p.bmp file, it look like has a alpha channel. so i try to convert it to png file by use imagemagick.
But whatever i try, the png file cannot keep the alpha channel:
The p.bmp file:
convert p.bmp p.png
(source: meteor.com)
convert p.bmp png24:p24.png
(source: meteor.com)
convert p.bmp png32:p32.png
(source: meteor.com)
Could anyone help me to find the alpha data in the p.bmp file, and convert it to png file?
You discovered a bug in ImageMagick. This will be fixed in ImageMagick 6.8.7-9. I am one of the developers for ImageMagick and I just committed the fix to our SVN repository (http://trac.imagemagick.org/changeset/13867).
Each month I get new CMYK and RGB images that shall be used on the web.
I had a script using a patched up ImageMagick doing this, but it got deleted. So I need to do it again, but it was hard last time.
How do you easily and quickly convert CMYK image files to RGB?
Like so:
convert CMYK.tiff -profile "RGB.icc" RGB.tiff
convert cmyk_image.jpg -colorspace
rgb rgb_image.jpg
The answer of g.b.1981 basically is correct (+1), but...
To make it work reliable, I found I had to add -type truecolor to the commandline:
convert cmyk.jpg -colorspace rgb -type truecolor rgb.jpg