Please enable JavaScript to view this site.

Navigation: Developer Information > Command Line Interface > Command Line Convert To Format

Command Line Convert GIF To PNG

Scroll Prev Top Next More

Convert GIF To PNG Command Line


win2pdfd.exe convertto "sourcefile.gif" "destfile.png" png

win2pdfd.exe convertto "sourcefile.gif" "destfile.png" pnggray

win2pdfd.exe convertto "sourcefile.gif" "destfile.png" pngtransparent

win2pdfd.exe convertto "sourcefile.gif" "destfile.png" pnggraytransparent


Reformats the GIF "sourcefile.gif" to a new PNG image, and saves the converted image to "destfile.png". The last parameter controls the PNG format:


PNG - Grayscale


PNG - Color


PNG - Grayscale with transparent background


PNG - Color with transparent background


Any file names that contain spaces must be enclosed with quotation marks. The "sourcefile" can be a local file path, or an web address (URL) to an existing GIF.


This feature requires a licensed version of Win2PDF. Contact us for a time limited evaluation license.


Returns 0 on success, and a Windows system error code on failure.