pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/1410HSV mode layers do not combine correctly2009-04-16T14:11:39ZPeter BortasHSV mode layers do not combine correctlyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1410
Reported by @zino
Several layer modes missbehaves. Attaching several example GIFs with
desired look to the left and how Pike handles them to the right.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1410
Reported by @zino
Several layer modes missbehaves. Attaching several example GIFs with
desired look to the left and how Pike handles them to the right.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1407Image.image->copy() might be lacking some boundary checks2009-04-16T14:11:39ZPeter BortasImage.image->copy() might be lacking some boundary checksImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1407
Reported by @zino
This is a "remember to check this on a modern Pike later" ticket.
```
Pike v7.1 release 57 running Hilfe v2.0 (Incremental Pike Frontend)
> objec...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1407
Reported by @zino
This is a "remember to check this on a modern Pike later" ticket.
```
Pike v7.1 release 57 running Hilfe v2.0 (Incremental Pike Frontend)
> object i = Image.Image(20,20)->copy(50,50,100,100);
Result: Image.Image( 51 x 51 /* 7.6Kb */)
> object i = Image.PNG.decode(Stdio.read_bytes("scrn0123.map.png"));
Result: Image.Image( 186 x 188 /* 102.4Kb */)
> object o = i->copy( 611, 49, 796, 236 );
zsh: segmentation fault pike
```Pike 7.2Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/1348Image.Colortable loses colors2009-04-16T14:11:39ZPeter BortasImage.Colortable loses colorsImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1348
Reported by Henrik Wallin, Roxen <hedda@roxen.com>
The order of elements in an array of colors to Image.Colortable() is
important somehow.
/home/hedda/colortablebug...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1348
Reported by Henrik Wallin, Roxen <hedda@roxen.com>
The order of elements in an array of colors to Image.Colortable() is
important somehow.
/home/hedda/colortablebugg.pike @ Idonex is an exemple program that read
the file k.png and generates one correct file 'rätt.gif' and one errorous
file 'fel.gif'. The only difference is the order of the elements in the
array.Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1336Segfault in Image.PNM.decode2009-04-16T14:11:39ZPeter BortasSegfault in Image.PNM.decodeImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1336
Reference: http://mc.pp.se/hus.ppm
Reported by @marcus
This PPM picture makes PNM.decode dump core. xv can display it.
```
Pike v7.2 release 10 running Hilfe v2.0...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1336
Reference: http://mc.pp.se/hus.ppm
Reported by @marcus
This PPM picture makes PNM.decode dump core. xv can display it.
```
Pike v7.2 release 10 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.PNM.decode(Stdio.read_file("/home/marcus/mc.pp.se/hus.ppm"));
Segmentation fault (core dumped)
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1250found image that crashes in Image.load, in tifflib2009-04-16T14:11:39ZPeter Bortasfound image that crashes in Image.load, in tifflibImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1250
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> hexdump( (#string "nemisis.jpg")[..1000] );
49 49 2a 00 08 00 00 00 18 00 fe 00 04 00 01 00 I...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1250
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> hexdump( (#string "nemisis.jpg")[..1000] );
49 49 2a 00 08 00 00 00 18 00 fe 00 04 00 01 00 II*. .... ..þ. ....
00 00 00 00 00 00 00 01 04 00 01 00 00 00 0c 01 .... .... .... ....
00 00 01 01 04 00 01 00 00 00 54 01 00 00 02 01 .... .... ..T. ....
03 00 03 00 00 00 2e 01 00 00 03 01 04 00 01 00 .... .... .... ....
00 00 06 00 00 00 06 01 03 00 01 00 00 00 06 00 .... .... .... ....
00 00 15 01 03 00 01 00 00 00 03 00 00 00 1a 01 .... .... .... ....
05 00 01 00 00 00 4c 01 00 00 1b 01 05 00 01 00 .... ..L. .... ....
00 00 54 01 00 00 1c 01 03 00 01 00 00 00 01 00 ..T. .... .... ....
00 00 28 01 03 00 01 00 00 00 02 00 00 00 42 01 ..(. .... .... ..B.
> Image.load("nemisis.jpg");
zsh: segmentation fault pike
(gdb) bt
#0 0x4047c371 in putcontig8bitYCbCr11tile () from /usr/lib/libtiff.so.3
#1 0x40477f54 in gtTileContig () from /usr/lib/libtiff.so.3
#2 0x40477c69 in TIFFRGBAImageGet () from /usr/lib/libtiff.so.3
#3 0x40477cfd in TIFFReadRGBAImage () from /usr/lib/libtiff.so.3
#4 0x4044dd15 in low_image_tiff_decode ()
at /users/mirar/pike/src/modules/_Image_TIFF/image_tiff.c:219
#5 0x4044e136 in image_tiff__decode (args=1)
at /users/mirar/pike/src/modules/_Image_TIFF/image_tiff.c:669
#6 0x80807d1 in mega_apply (type=APPLY_STACK, args=1, arg1=0x0, arg2=0x0)
at /users/mirar/pike/src/interpret.c:1225
```
not when you call tifflib directly, though:
```
> Image.TIFF.decode(#string "nemisis.jpg");
Failed to 'open' tiff image.
/usr/local/pike/7.3.2/lib/modules/_Image_TIFF.so:
decode("II*\0\b\0\0\ [...]")
-:1: ___Foo4711()
```Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1187GIMP (xcf) files with layers in overlay mode broken2009-04-16T14:11:39ZPeter BortasGIMP (xcf) files with layers in overlay mode brokenImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1187
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
Layers in xcf files that use the overlay method are oddly broken. Seems
like the alpha channel is...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1187
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
Layers in xcf files that use the overlay method are oddly broken. Seems
like the alpha channel is ignored or something.Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/1167XCF decoder cannot decode "multiply" layers correctly2020-02-29T17:53:47ZPeter BortasXCF decoder cannot decode "multiply" layers correctlyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1167
Reported by @zino
The XCF decoder cannot decode "multiply" layers correctly. Attaching exmple
xcf and screenshots from Gimp and PV.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1167
Reported by @zino
The XCF decoder cannot decode "multiply" layers correctly. Attaching exmple
xcf and screenshots from Gimp and PV.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1076Rotation of an image of size 0 causes segfault.2009-04-16T14:11:39ZPeter BortasRotation of an image of size 0 causes segfault.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1076
Reported by Anders Johansson <anders@roxen.com>
```
Pike v7.0 release 141 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Image(17,0)->rotate(17);
zsh: 32118 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1076
Reported by Anders Johansson <anders@roxen.com>
```
Pike v7.0 release 141 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Image(17,0)->rotate(17);
zsh: 32118 segmentation fault (core dumped) pike
```Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/984Image.Color and Colors.parse_color parses HSV differently2009-04-16T14:11:39ZPeter BortasImage.Color and Colors.parse_color parses HSV differentlyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=984
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> Colors.parse_color("@128,50,50");
Result: ({ /* 3 elements */
49,
79,
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=984
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> Colors.parse_color("@128,50,50");
Result: ({ /* 3 elements */
49,
79,
253
})
> Image.Color("@128,50,50")->rgb();
Result: ({ /* 3 elements */
63,
127,
72
})
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/982Image.Color may dump core on "grey"-input2009-04-16T14:11:39ZPeter BortasImage.Color may dump core on "grey"-inputImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=982
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 21 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Color("grey00");
Result: "û"...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=982
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 21 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Color("grey00");
Result: "û"
> Image.Color("grey99");
/home/nilsson/Pike/7.1/src/pike_types.c:153: Fatal error:
Error in type string 32.
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
-:1: ___Foo4711()
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:103:
do_evaluate("mixed ___Foo4711() { return
(mixed)(Image.Color(\"grey99\"));
}\n",1)
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:603:
parse_statement("Image.Color(\"grey99\");")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:381:
do_parse()
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:224:
add_buffer("Image.Color(\"grey99\");\n")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:623:
add_input_line("Image.Color(\"grey99\");\n")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:703:
create()
Hilfe: StdinHilfe()
Abort (core dumped)
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/958found a file that causes segmentation fault in Image.load2009-04-16T14:11:39ZPeter Bortasfound a file that causes segmentation fault in Image.loadImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/626PNG decode coredumps on malformed images2009-04-16T14:11:39ZPeter BortasPNG decode coredumps on malformed imagesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=626
Reported by Chris Jantzen, Maybe.Net <chris@maybe.net>
On malformed images (specifically from gd), the PNG decode will dump core.
Following patch fixes the issue:
``...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=626
Reported by Chris Jantzen, Maybe.Net <chris@maybe.net>
On malformed images (specifically from gd), the PNG decode will dump core.
Following patch fixes the issue:
```
diff -u -r1.31 png.c
--- src/modules/Image/encodings/png.c 2000/05/07 00:05:10 1.31
+++ src/modules/Image/encodings/png.c 2000/10/28 17:25:22
@@ -791,6 +791,7 @@
if (x)
x--,n--,*(d1++)=ct->u.flat.entries[CUTPLTE(((*s)>>4)&15,mz)].color;
if (x)
x--,n--,*(d1++)=ct->u.flat.entries[CUTPLTE((*s)&15,mz)].color;
s++;
+ if (n<2) break;
if (!x) x=width;
}
else
```
(hope that doesn't get too mangled by netscape)Pike 7.0