Closed Jose-Moreno closed 3 years ago
I have found the issue. From https://doc.qt.io/qt-5/qimage.html#copy:
In areas beyond this image, pixels are set to 0. For 32-bit RGB images, this means black; for 32-bit ARGB images, this means transparent black; for 8-bit images, this means the color with index 0 in the color table which can be anything; for 1-bit images, this means Qt::color0.
This is happening because the images produces by movie export are RGB images, not ARGB images. At the very least we will have to add some checks to BitmapImage::copy and call QImage::convertToFormat if the format is not ARGB and the rectangle extends beyond the image bounds.
@Jose-Moreno When you get a chance can you test to confirm that this has been fixed for you in the latest nightly build?
@Jose-Moreno When you get a chance can you test to confirm that this has been fixed for you in the latest nightly build?
@scribblemaniac Will do, thank you for notifying me 🙇
@scribblemaniac Sorry it took me so long. After following the issue steps I can no longer reproduce this. I also tried saving and reloading like last time I had this problem and it didn't appear, so I'd say it's positively fixed. Thanks a lot!
Issue Summary
Manipulating the imported frames will cause visual artefacts to the alpha channel transformed by the move tool in the area surrounded by the rectangular marquee causing a "black fill" (usual color representation for transparency / alpha values).
I've already tested this with all the other import options and only the movie video options does this.
There are three components that seem to be related to this:
Note: it's also unexpected that I can undo the "glitch" all the time.
Expected Results
Having no visual glitch nor incorrect alpha channel information for any imported image either bitmap or vector.
Video or Image Reference
https://youtu.be/HAaUtoLCfLU
Steps to reproduce
System Information
Nightly Build May 11 2021
commit: 7ba6e71f81eb6337af4cb378284b7e72ea160f79 date: 2021-05-11_07:39:53
Operating System: Windows 10 Version 2009 CPU Architecture: x86_64 Qt Version: 5.15.2