Closed 33KK closed 3 years ago
Currently pineapple-pictures uses QGraphicsPixmapItem::setTransformationMode
with SmoothTransformation
to smooth image when zoomed out, not sure how Gwenview did, will investigate it later™.
By the way, did you mind share the original image so I can use that to test on my machine?
Thanks!
Can't give that image right now, any image should work. I feel like there's some other transformation going on, since it looks fine in flameshot recent uploads window, which uses QLabel with scaled QPixmap
I don't have an image that very suited for testing this issue right now. It seems like Gwenview uses the same method (not 100% sure, just did a quick look), may look into it later. It could be an interesting issue if Gwenview really does that and the behavior is not the same :p
Just randomly drew an ellipse and seems I'm able to reproduce this issue.
Original image used to test this bug
Anyway, I'll investigate it later™.
I'm probably using the QGraphicsView/QGraphicScene in a wrong way. Currently, when zooming in and out, the program will apply the scale to the graphics view instead of the image (QGraphicsPixmapItem) item. The SmoothTransformation
mode applied to the item seems will only work when the scale transform is applied to the item.
Maybe I need to refactor some part of the code to resolve this issue, still not sure about this. Anyway confirmed this issue and this should be resolved in later updates.
Hi and could you try if https://github.com/BLumia/pineapple-pictures/commit/36c54addce2f7ba34f43631276ca4ad901b5dc36 resolved this issue?
Looks good now, thanks
Preview thing is also not using SmoothTransform btw
Preview thing is also not using SmoothTransform btw
The preview and the main area share the same graphics scene so only one of them could look smooth in the current implementation. It's just a navigation preview so I guess it's okay ;P
I'll close this issue then, let me know if you found any other issue :)
Update: 36c54ad introduced a bug that has been fixed in 7a0ed5b. If you are using 36c54ad please consider update :)
top: pineapple-pictures botton: gwenview