-
Notifications
You must be signed in to change notification settings - Fork 38
fix: Fixed CMYK image display issue #176
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
Conversation
Fixed CMYK image display issue Log: Fixed CMYK image display issue bug: https://pms.uniontech.com/bug-view-326991.html
as title Log: update version
|
TAG Bot TAG: 6.5.30 |
deepin pr auto review代码审查意见:
以上是针对代码审查的几点意见,希望能够对您有所帮助。 |
Reviewer's GuideAdds a Qt6-only helper that converts non-sRGB images (including CMYK) to sRGB using multi-stage fallbacks and hooks it into the image loading flow; also bumps the package version to 6.5.30.1. Sequence diagram for image loading and color space conversion in Qt6sequenceDiagram
participant FileHander
participant QImage
participant QColorSpace
participant DebugLog
FileHander->>QImage: loadImage(file)
QImage-->>FileHander: img
alt Qt6
FileHander->>FileHander: convertToSRgbColorSpace(img)
FileHander->>QColorSpace: Check color space
QImage-->>DebugLog: Log color space info
alt Needs conversion
FileHander->>QImage: convertedToColorSpace(sRGB)
QImage-->>DebugLog: Log conversion result
alt Conversion fails
FileHander->>QImage: Manual color space setting
QImage-->>DebugLog: Log conversion result
alt Conversion fails
FileHander->>QImage: Basic format conversion
QImage-->>DebugLog: Log conversion result
end
end
end
FileHander-->>QImage: Return converted image
else Qt5
FileHander->>QImage: convertToFormat(ARGB32)
FileHander-->>QImage: Return converted image
end
Class diagram for FileHander and color space conversion helperclassDiagram
class FileHander {
+QImage loadImage(QString file)
}
class FileHander_private
FileHander --> FileHander_private
class QImage {
+bool isNull()
+QColorSpace colorSpace()
+QImage convertedToColorSpace(QColorSpace)
+QImage copy()
+void setColorSpace(QColorSpace)
+QImage convertToFormat(Format)
+Format format()
}
class QColorSpace {
+static QColorSpace SRgb
+bool isValid()
+QString description()
}
FileHander ..> QImage
FileHander ..> QColorSpace
class convertToSRgbColorSpace {
+static QImage convertToSRgbColorSpace(const QImage &image)
}
FileHander ..> convertToSRgbColorSpace
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Kakueeen, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
Summary by Sourcery
Fix CMYK image display issue by converting loaded images to sRGB under Qt6 and update application version to 6.5.30.1 across packaging
Bug Fixes:
Chores: