Skip to content

Instantly share code, notes, and snippets.

@tyrells
Created January 3, 2020 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyrells/9c960b0343853fc813b694d579b0d4f0 to your computer and use it in GitHub Desktop.
Save tyrells/9c960b0343853fc813b694d579b0d4f0 to your computer and use it in GitHub Desktop.
MS-DOS Aspect ratio correction and image resize using imagemagick
# To convert 320x200 screenshots from DOS games into 640x480 images using a single imagemagick command
# Based on the technique in https://www.gamasutra.com/blogs/FelipePepe/20150423/241730/No_MSDOS_games_werent_widescreen_Tips_on_correcting_aspect_ratio.php
magick convert original.png -interpolate Nearest -filter Point -resize 640x1200! +filter -interpolate Bilinear -resize 640x480! -verbose output.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment