User Tools

Site Tools


arma2:texturing:imagemagick

ArmA 2 ImageMagick

ArmA 2 Forum, ArmA 2 Home, ArmA 2 Config, ArmA 2 File Formats, ArmA 2 Missions, ArmA 2 3D Modeling, ArmA 2 Scripting, ArmA 2 Terrain, ArmA 2 Texturing, ArmA 2 Tools

Generic ImageMagick help, tips, tutorials etc.

ImageMagick homepage. PMC Tactical Forum Topic.

2024-10-13T20:44:00Z updated to Version: ImageMagick v7.1.1-39 Q16 x64

Out of Memory

On huge image files you easily run out of memory, here is how to avoid it.

ImageMagick needs to swap to temp dir/file, if the drive it tries to swap gets full you can define new drive/path like this:

set MAGICK_TEMPORARY_PATH=C:\temp

You can use what path you wish there.

Seems that 20480 resolution image is fine, but 25600 starts to really bogg down win7 64bit with 16gb RAM.

Indexed to RGB Color

How to use ImageMagick to convert indexed PNG image into RGB color:

magick convert indexed.png -define png:color-type=2 rgb.png

Take a note that when you convert large image, huge image… it takes quite long time and eats all the memory you have in your computer, strange thing even though its supposed to use the temp directory. But, it works. For example Photoshop CS6 does not save large PNG image with RGB color to PNG (it loads indexed, but doesn't save RGB).

Imagemagick Convert Large Satellite to Smaller

Imagemagick Convert Large Satellite to Smaller for testing purposes, for example convert 40960 monster to a 12800 which you can more easily import many times into Visitor 3 while you are testing some satellite settings.

resize larger satellite down into 12800 res:

set MAGICK_TEMPORARY_PATH=C:\temp
magick convert Satellite_texture_lco.png -resize 12800x12800 satellite_texture_12800_lco.png
magick convert Satellite_mask_lco.png -resize 12800x12800 satellite_mask_12800_lco.png
pause

Imagemagick Append

Append command merges two or more images together.

rem -append is TOP TO BOTTOM
rem +append is LEFT TO RIGHT
magick convert +append sat_A1.bmp sat_A2.bmp satellite_top.bmp

Split Image to Tiles

How to split image to specific resolution pieces with imagemagick?

magick convert test.png -crop 1024x1024 tiles.png
arma2/texturing/imagemagick.txt · Last modified: 2024/10/13 20:45 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.