Skip to content

Tool to convert from .dc6 (D2 images) to upsampled .png images

License

Notifications You must be signed in to change notification settings

pairofdocs/dc6_png_enhance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dc6 to png Enhance

A tool to convert from .dc6 (D2 images) to upsampled .png images

Requirements

Usage

Download the files from this repository and unzip

Open a terminal (shift + right click in your folder and select 'Open Powershell window here') then run python dc6_png_enhance.py

python dc6_png_enhance.py takes *.dc6 files in ./dc6/ and makes 4x ai upsampled pngs in ./png-hd/ (If there is an error about the python requests package, then in a CMD/powershell window do pip install requests)

Up sampling / super resolution is done with https://deepai.org/ 's API

The output upsampled .png feeds right into SpriteEdit and when converted to a .sprite can go into the D2R data folder data/hd/global/ui/items, panels, etc

Note: Trial API Key

dc6_png_enhance.py uses a trial API key from https://deepai.org.
If you need to convert more than 10 dc6 images then sign up to get an API key for free with https://deepai.org/.
Then enter your API key on line 15 of dc6_png_enhance.py after "api-key":".

Other Ideas

Image upsampling can be done with shaders from libretro, and other upsampling algorithms

for example https://docs.libretro.com/shader/scalefx/ ,and xbrz is popular https://docs.libretro.com/shader/xbrz/

Image Comparisons

Jewel: LoD, LoD enhanced, and D2R

  • LoD orig

  • LoD enhanced

  • d2r

Kinemil's Awl sword: LoD, LoD enhanced, and D2R

  • LoD orig

  • LoD enhanced

  • d2r

Credits and Tools

About

Tool to convert from .dc6 (D2 images) to upsampled .png images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages