tsurumeso / waifu2x-chainer

Chainer implementation of waifu2x
MIT License
165 stars 54 forks source link

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

Open ghost opened 5 years ago

ghost commented 5 years ago

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

tsurumeso commented 4 years ago

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