BallonsTranslator icon indicating copy to clipboard operation
BallonsTranslator copied to clipboard

Bug Report:無法在主畫布顯示 16-bit 灰階 PNG 圖片,但左側預覽圖正常

Open freelze opened this issue 6 months ago • 0 comments

Version Info

Python version: 3.9.16 (main, May 17 2023, 17:49:16) [MSC v.1916 64 bit (AMD64)] Python executable: E:\miniconda\envs\BallonsTranslator\python.exe Version: 1.4.0 Branch: dev commit: deabb67

Description of the Problem

16-bit Depth 灰階 PNG 圖片,無法在主畫布顯示,只有一片空白,也無法跑 OCR。 使用 ImageMagick 轉成 8-bit Depth 後就能正常顯示和執行。

無法正常顯示的圖片詳細格式
Image:
Filename: 0002.png
Permissions: rw-rw-rw-
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: DirectClass
Geometry: 2150x3036+0+0
Resolution: 300x300
Print size: 7.16667x10.12
Units: Undefined
Colorspace: Gray
Type: Grayscale
Endianness: Undefined
Depth: 16-bit
Channels: 1.0
Channel depth:
Gray: 16-bit
Channel statistics:
Pixels: 6527400
Gray:
min: 256  (0.00390631)
max: 65535 (1)
mean: 55259.3 (0.843203)
median: 65535 (1)
standard deviation: 23759.4 (0.362546)
kurtosis: 1.54201
skewness: -1.88155
entropy: 0.107071
Colors: 65
Histogram:
1024757: (256,256,256) #010001000100 gray(0.390631%)
92: (1281,1281,1281) #050105010501 gray(1.95468%)
62: (2314,2314,2314) #090A090A090A gray(3.53094%)
80: (3342,3342,3342) #0D0E0D0E0D0E gray(5.09957%)
80: (4365,4365,4365) #110D110D110D gray(6.66056%)
57: (5393,5393,5393) #151115111511 gray(8.22919%)
82: (6425,6425,6425) #191919191919 gray(25)
58: (7452,7452,7452) #1D1C1D1C1D1C gray(11.371%)
115: (8482,8482,8482) #212221222122 gray(12.9427%)
71: (9508,9508,9508) #252425242524 gray(14.5083%)
60: (10536,10536,10536) #292829282928 gray(16.0769%)
50: (11565,11565,11565) #2D2D2D2D2D2D gray(45)
67: (12593,12593,12593) #313131313131 gray(49)
80: (13620,13620,13620) #353435343534 gray(20.7828%)
59: (14648,14648,14648) #393839383938 gray(22.3514%)
58: (15676,15676,15676) #3D3C3D3C3D3C gray(23.92%)
220: (16706,16706,16706) #414241424142 gray(25.4917%)
53: (17734,17734,17734) #454645464546 gray(27.0603%)
52: (18762,18762,18762) #494A494A494A gray(28.629%)
70: (19789,19789,19789) #4D4D4D4D4D4D gray(77)
49: (20817,20817,20817) #515151515151 gray(81)
69: (21845,21845,21845) #555555555555 gray(85)
74: (22874,22874,22874) #595A595A595A gray(34.9035%)
53: (23901,23901,23901) #5D5D5D5D5D5D gray(93)
205: (24929,24929,24929) #616161616161 gray(97)
41: (25956,25956,25956) #656465646564 gray(39.6063%)
64: (26985,26985,26985) #696969696969 gray(105)
69: (28013,28013,28013) #6D6D6D6D6D6D gray(109)
100: (29041,29041,29041) #717171717171 gray(113)
73: (30069,30069,30069) #757575757575 gray(117)
67: (31097,31097,31097) #797979797979 gray(121)
92: (32126,32126,32126) #7D7E7D7E7D7E gray(49.0211%)
187: (33153,33153,33153) #818181818181 gray(129)
63: (34181,34181,34181) #858585858585 gray(133)
95: (35209,35209,35209) #898989898989 gray(137)
60: (36237,36237,36237) #8D8D8D8D8D8D gray(141)
84: (37265,37265,37265) #919191919191 gray(145)
83: (38293,38293,38293) #959595959595 gray(149)
75: (39321,39321,39321) #999999999999 gray(153)
103: (40349,40349,40349) #9D9D9D9D9D9D gray(157)
213: (41377,41377,41377) #A1A1A1A1A1A1 gray(161)
65: (42405,42405,42405) #A5A5A5A5A5A5 gray(165)
48: (43433,43433,43433) #A9A9A9A9A9A9 gray(169)
98: (44461,44461,44461) #ADADADADADAD gray(173)
98: (45489,45489,45489) #B1B1B1B1B1B1 gray(177)
83: (46517,46517,46517) #B5B5B5B5B5B5 gray(181)
93: (47545,47545,47545) #B9B9B9B9B9B9 gray(185)
84: (48573,48573,48573) #BDBDBDBDBDBD gray(189)
510: (49601,49601,49601) #C1C1C1C1C1C1 gray(193)
117: (50629,50629,50629) #C5C5C5C5C5C5 gray(197)
91: (51657,51657,51657) #C9C9C9C9C9C9 gray(201)
71: (52685,52685,52685) #CDCDCDCDCDCD gray(205)
156: (53713,53713,53713) #D1D1D1D1D1D1 gray(209)
73: (54741,54741,54741) #D5D5D5D5D5D5 gray(213)
140: (55769,55769,55769) #D9D9D9D9D9D9 gray(217)
145: (56798,56798,56798) #DDDEDDDEDDDE gray(86.6682%)
144: (57825,57825,57825) #E1E1E1E1E1E1 gray(225)
137: (58853,58853,58853) #E5E5E5E5E5E5 gray(229)
185: (59881,59881,59881) #E9E9E9E9E9E9 gray(233)
127: (60909,60909,60909) #EDEDEDEDEDED gray(237)
201: (61937,61937,61937) #F1F1F1F1F1F1 gray(241)
201: (62965,62965,62965) #F5F5F5F5F5F5 gray(245)
230: (63993,63993,63993) #F9F9F9F9F9F9 gray(249)
425: (65021,65021,65021) #FDFDFDFDFDFD gray(253)
5495736: (65535,65535,65535) #FFFFFFFFFFFF gray(255)
Rendering intent: Undefined
Gamma: 0.454545
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 2150x3036+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Profiles:
Profile-icc: 3024 bytes
Properties:
date:create: 2025-06-03T13:28:15+00:00
date:modify: 2025-05-31T03:48:26+00:00
date:timestamp: 2025-06-03T13:36:34+00:00
icc:copyright: Copyright International Color Consortium, 2015
icc:description: sRGB2014
icc:model: IEC 61966-2-1 Default RGB Colour Space - sRGB
pdf:HiResBoundingBox: 515.931x728.434+0+0
pdf:Version: PDF-1.5
png:bKGD: chunk was found (see Background color, above)
png:IHDR.bit-depth-orig: 16
png:IHDR.bit_depth: 16
png:IHDR.color-type-orig: 0
png:IHDR.color_type: 0 (Grayscale)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 2150, 3036
png:pHYs: x_res=300, y_res=300, units=0
png:text: 9 tEXt/zTXt/iTXt chunks were found
png:text-encoded profiles: 1 were found
png:tIME: 2025-05-31T03:43:46Z
profile: /app/sRGB2014.icc
signature: d88f2342664a15d880a70679e65fb46202b17c5a9d619a4accb6b9f7e9230451
Artifacts:
verbose: true
Tainted: False
Filesize: 209562B
Number pixels: 6.5274M
Pixel cache type: Memory
Pixels per second: 91.1223MP
User time: 0.072u
Elapsed time: 0:01.071
Version: ImageMagick 7.1.1-47 Q16-HDRI x64 82572af:20250329 https://imagemagick.org

Text Detector

None

OCR

None

Inpaint

None

Translator

None

Screenshot

16-bit PNG,GRAY8BPP:

Image

8-bit PNG,GRAY8BPP:

Image

Logs


Additional Information

No response

freelze avatar Jun 03 '25 14:06 freelze