imxieyi / waifu2x-mac

Waifu2x-ios port to macOS, still in Core ML and Metal
MIT License
439 stars 45 forks source link

Bit-depth support? #16

Closed ArguingMeadows closed 4 years ago

ArguingMeadows commented 4 years ago

Is there going to be a feature in the future to support more than 24-bit png? I would like to feed it 32-bit images and have the bit depth retained.

imxieyi commented 4 years ago

If you mean alpha channel, it is already supported.

ArguingMeadows commented 4 years ago

Well, yes and no. So I have 32-bit pngs that don't have an alpha channel and if I sent them through, they come back as 24-bit. My work around right is to crop in Premiere to force an alpha channel out of a PNG sequence, but I was wondering if I could just send out a PNG without cropping.

imxieyi commented 4 years ago

If you mean something like CGImageAlphaInfo.noneSkipFirst, it should be an easy fix.

ArguingMeadows commented 4 years ago

Is that a command I can add in the CLI?

imxieyi commented 4 years ago

Not yet. You can use some programs like imagemagick to convert 24 bit images to 32 bit.