Problem with X and JPEG2000 images

Dave Howorth xorg at howorth.org.uk
Fri Jan 1 20:50:01 UTC 2021


On Fri, 1 Jan 2021 20:14:45 +0000
Carsten Haitzler <raster at rasterman.com> wrote:

> On Fri, 1 Jan 2021 14:37:58 +0100 szukw000 <szukw000 at arcor.de> said:
> 
> As Alan said - there are limits on X primitives and coordinates
> (16bit).

Winfried

I think what both Alan and Carsten are pointing out is that this is a
bug in fltk and not in X. I would suggest you submit a bug report to the
fltk developers.

> The solution to this is to not use windows or pixmaps > 32767 in size
> in any dimension. Instead just draw a sub-region of the image to the
> target window or pixmap (divide the image up into multiple pixmaps
> and copy the regions/tiles from here to the destination window).
> Don't use x windows and move/resize them around for large content
> etc. - but instead just draw the right sub-region.
> 
> > I use fltk-1.4 . Large images are not shown with LINUX:
> > 
> > image size: 811 792 452 Byte
> > 
> > ESP_028011_2055_RED.JP2(28260 x 52834)
> > 
> > (...)
> > XRequest.138: BadDrawable (invalid Pixmap or Window parameter)
> > 0x120404e XRequest.138: RenderBadPicture (invalid Picture
> > parameter) 0x120ef49 XRequest.138: RenderBadPicture (invalid
> > Picture parameter) 0x120ef49
> > 
> > But when I limit the width and/or the height of the image, it is
> > shown:
> > 
> > #define MAX_ROW_COL 32500
> > ESP_028011_2055_RED.JP2(28260 x 52834) (rescaled: 28260 x 32500)
> > 
> > 
> > Changing the parameters of x,y,w,h to long or float or double
> > perhaps would help with large images.
> > 
> > The limitation is with X only. WIN10 does not need a limitation.
> > 
> > winfried
> > 
> > _______________________________________________
> > xorg at lists.x.org: X.Org support
> > Archives: http://lists.freedesktop.org/archives/xorg
> > Info: https://lists.x.org/mailman/listinfo/xorg
> > Your subscription address: %(user_address)s
> >   
> 
> 



More information about the xorg mailing list