waifu2x-chainer icon indicating copy to clipboard operation
waifu2x-chainer copied to clipboard

[support request] are possible to support all JPEG formats?

Open ghost opened this issue 5 years ago • 1 comments

Some images use JPEG formats that beside .jpg and .jpeg. Can your Waifu2x support other JPEG formats such as .jpe, .jif, .jfif, and .jfi?

ghost avatar May 28 '19 10:05 ghost

You can extend support by adding those extensions on the following lines. input_ext is supported extensions of input images and output_ext is that of output images. But I don't know if those images can be loaded by Python Imaging Library. https://github.com/tsurumeso/waifu2x-chainer/blob/fa91111d6a3c985d45608942c11643cb884255e5/waifu2x.py#L162-L163

tsurumeso avatar Apr 06 '20 15:04 tsurumeso