Opened 15 years ago
Closed 12 years ago
#35 closed defect (wontfix)
png()
Reported by: | Peter Baumann | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | conversion | Version: | |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
png() does not properly consider the pixel type, ex:
select png( mr2*{1,1,1}) from m2
The above query delivers a wrong image as png() blindly takes every byte and puts it into a pixel, while a pixel here has more than one bytes.
Conversion should either use int pixel type (best) or issue a type mismatch if it expects 8bit values and receives 16bit values (2nd best solution).
Note: the other format converters should also be checked for proper type handling.
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
png() is deprecated, will be phased out in favor of encode(_,"png").
Note:
See TracTickets
for help on using tickets.
This one works well
It seems like the other one produces some sort of an overflow? #49 reported similar error