-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
设置inpainted的格式 #724
Comments
存成有损压缩反复读取保存会造成图像劣化 |
How about merging the two files into one by taking advantage of the fact that the mask image is black and white and putting it into the alpha channel of the inpainted image? |
I doubt it would save significant space worth the effort. Besides, saving these intermediates as they are is convenient for post-editing. |
Then how about adding the ability to compress intermediate and final images for completed work? Users will feel uncomfortable about preserving a large-sized project even though the work is completed. If we can dramatically reduce the size of a completed project with lossy compression, I think it will be easy to preserve the project even if there is image loss. |
能不能每次保存inpainted的时候和mask做一次乘法,这样用不上的像素就是空白的,png保存的时候连续的相同像素可以大大减小文件体积 |
Currently, when making modifications using inpainting or paint tools, the program attempts to directly edit the inpainted image. As you mentioned, if unused areas are made blank, the program would need to composite the original image with the inpainted image (where unused areas are blanked out) every time a modification is made. Moreover, unless an alpha channel is used, it would be difficult to distinguish between actual black and the blanked-out areas, making implementation challenging. |
Hello, considering that generative AI translation is currently cheap and easy to use, I have chosen to use my native language for real-time communication. I hope you don't mind.
|
Oh, I think I misunderstood. You mean that if you leave only the valid parts of the mask in the inpaint image and designate the rest as blank, you can later composite only the masked parts with the original image, so there is no problem? If this interpretation is correct, I agree that there is no big difficulty in implementation. Except that the process of obtaining the intermediate result becomes difficult. |
如题,太占地方了,希望能设置成更jpg或者webp
其实对于漫画来说最节省地方的是png+索引颜色,不过一半要专业的图片处理软件才会内置,所以能退而求其次保存成jpg或者webp就好了
The text was updated successfully, but these errors were encountered: