Jump to content
LaunchBox Community Forums

Bulk fix your PNG quick and easy


Recommended Posts

 Sometimes box images have too much transparency padding which just makes them display improperly.  There is an easy fix for this!


 If you are running windows, download ImageMagick-7.1.0-58-Q16-x64-dll.exe

 I don't think this warranted creating a powershell workflow for running multiple jobs at once since it's already very quick.

 I just choose a folder of files I want to fix and run a small powershell script.  Please don't run it against ALL your images, just ones where boxes have uneven cropping.  I used it on 'Vectrex' and 'SNK Neo Geo CD' 3D boxes.

$foldertofix = "D:\Launchbox\Images\GCE Vectrex\Box - 3D"
$exe = "c:\Program Files\ImageMagick-7.1.0-Q16\magick.exe"

$files = dir "$foldertofix\*.png" -Recurse

$files | ForEach-Object {
   $file = $_.FullName
   Write-host "Fixing $file"
   & $exe $file -fuzz 1% -trim +repage $file


Results before and after below:



Edited by Rob_G
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...