Opened 7 years ago

Closed 5 years ago

#35 closed defect (wontfix)


Reported by: pbaumann Owned by:
Priority: major Milestone:
Component: conversion Version:
Keywords: Cc:


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 Changed 5 years ago by dmisev

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 Changed 5 years ago by pbaumann

  • Resolution set to wontfix
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.