User Tools

Site Tools


arma3:emf-to-png

EMF to PNG

2021-08-10

HOWTO convert EMF image to PNG. See also ExportNoGrid, Export to EMF and ArmA 1 Making Satellite Texture Mask, Export of Project Printout.

GIMP or GraphicsMagick unfortunately does not open EMF images.

EmfToPng.exe

Use arma2 visitor 3 era EmfToPng.exe

Unfortunately this tool does a bad job, GraphicsMagick cannot read these converted PNG images but GIMP and IrfanView can. Your best option is to convert few and small images with GIMP directly and many images with IrfanView.

Overall recommendation is DO NOT use EmfToPng, use IrfanView instead.

EmfToPng.exe terrainname.EMF

Or with “zoom”:

EmfToPng.exe terrainname.EMF [zoom]

Below is example batch file PMC editing computer uses, meaning the path to EmfToPng is unique for our computer, you can use this and edit the path on second line to where your EmfToPng.exe is located (remember no spaces or illegal characters in directory names).

_run_convert_C_drive_terrainName_EMF_to_PNG.bat:

@echo off
set EMFTOPNG=D:\tools\EmfToPng\EmfToPng.exe
if not exist %EMFTOPNG% goto EMFtoPNGMissing
if not exist C:\*.emf goto NoEMFImagesInC
 
for %%x in (c:\*.emf) do (
echo *
echo Processing %%x ...
%EMFTOPNG% %%x
echo -
echo Deleting %%x ...
del %%x
)
 
echo All done.
pause
exit
 
:NoEMFImagesInC:
echo No EMF images in C:\, abort.
pause
exit
 
:EMFtoPNGMissing:
echo %EMFTOPNG% is missing, abort.
pause
exit

IrfanView

IrfanView can view EMF images directly. Use batch processing to select all EMF images and convert to PNG format. Conversion seems to be working good.

Make sure you download and install the 64bit version, we are working with huge images.

When converting 143k resolution PNGs to PNGs because GraphicsMagick cannot read EmfToPng saved PNGs, irfanview uses ALL the RAM it can have, this was 62gb in our 64gb RAM computer.

On 2021-08-11 when I converted all Vietnam: The Experience terrain images from PNG to PNG (yes, its strange), it took HOURS of processing because the images were huge. If you have many huge images to process, do them one at the time just in case you want to abort the process as irfanview has no cancel option while its (Not Responding) state.

But… this is a moot point anyways, never try to process over 100k pixel resolution images, they are way too large.

ImageMagick

ImageMagick Its rumored to convert EMF images, if you have done it please can you contact us and send command line info, thanks.

GraphicsMagick

GraphicsMagick unfortunately cannot convert EMF images, just says:

gm convert: Unable to create bitmap (pmc_greece_agios_efstratios_nogrid.emf).
arma3/emf-to-png.txt · Last modified: 2021-08-11 12:44 by snakeman