Opened 14 years ago

Closed 11 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 Dimitar Misev, 12 years ago

This one works well

select png( mr2*{1c,1c,1c}) from mr2

It seems like the other one produces some sort of an overflow? #49 reported similar error

comment:2 by Peter Baumann, 11 years ago

Resolution: wontfix
Status: newclosed

png() is deprecated, will be phased out in favor of encode(_,"png").

Note: See TracTickets for help on using tickets.