User Tools

Site Tools


arma2:texturing:imagemagick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
arma2:texturing:imagemagick [2017-04-05 01:52]
snakeman added split image to tiles header.
arma2:texturing:imagemagick [2020-05-14 05:39]
snakeman updated to v7.0.10-11
Line 4: Line 4:
  
 [[http://​www.imagemagick.org/​|ImageMagick]] homepage. [[http://​www.imagemagick.org/​|ImageMagick]] homepage.
 +
 +**2020-05-14** updated to Version: ImageMagick 7.0.10-11 Q16 x64 2020-05-09.
  
  
Line 23: Line 25:
 How to use ImageMagick to convert indexed PNG image into RGB color: How to use ImageMagick to convert indexed PNG image into RGB color:
 <code dos> <code dos>
-convert indexed.png -define png:​color-type=2 rgb.png+magick ​convert indexed.png -define png:​color-type=2 rgb.png
 </​code>​ </​code>​
 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). 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).
Line 35: Line 37:
 <code dos> <code dos>
 set MAGICK_TEMPORARY_PATH=C:​\temp set MAGICK_TEMPORARY_PATH=C:​\temp
-convert Satellite_texture_lco.png -resize 12800x12800 satellite_texture_12800_lco.png +magick ​convert Satellite_texture_lco.png -resize 12800x12800 satellite_texture_12800_lco.png 
-convert Satellite_mask_lco.png -resize 12800x12800 satellite_mask_12800_lco.png+magick ​convert Satellite_mask_lco.png -resize 12800x12800 satellite_mask_12800_lco.png
 pause pause
 </​code>​ </​code>​
Line 47: Line 49:
 rem -append is TOP TO BOTTOM rem -append is TOP TO BOTTOM
 rem +append is LEFT TO RIGHT rem +append is LEFT TO RIGHT
-convert +append sat_A1.bmp sat_A2.bmp satellite_top.bmp+magick ​convert +append sat_A1.bmp sat_A2.bmp satellite_top.bmp
 </​code>​ </​code>​
  
Line 55: Line 57:
 How to split image to specific resolution pieces with imagemagick?​ How to split image to specific resolution pieces with imagemagick?​
 <code dos> <code dos>
-convert test.png -crop 1024x1024 tiles.png+magick ​convert test.png -crop 1024x1024 tiles.png
 </​code>​ </​code>​
arma2/texturing/imagemagick.txt · Last modified: 2020-05-14 05:39 by snakeman