|
From: | Sudarshan S Chawathe |
Subject: | [Bug-kawa] [bug #49367] (kawa pictures) image-write gives exception on pictures |
Date: | Sat, 17 Dec 2016 20:32:53 -0000 |
User-agent: | Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?49367> Summary: (kawa pictures) image-write gives exception on pictures Project: Kawa Submitted by: chaw Submitted on: Sun 16 Oct 2016 08:23:41 PM GMT Category: Scheme library Severity: 3 - Normal Item Group: Run-time exception Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: image-write produces a run-time exception (below) when used on a picture (even with an explicit ->image conversion). A simple example that triggers the error is below. This is with the SVN Kawa version (from yesterday) on 32-bit Debian Jessie and OpenJDK 8. (import (kawa pictures)) (image-write (circle 30) "/tmp/t.jpg") ; error (image-write (->image (circle 30)) "/tmp/t.jpg") ; same error (define img1 (image-read "http://pics.bothner.com/2013/Cats/06t.jpg")) (image-write img1 "/tmp/t.jpg") ; works Error... javax.imageio.IIOException: Invalid argument to native writeImage at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method) at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1067) at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:363) at javax.imageio.ImageWriter.write(ImageWriter.java:615) at javax.imageio.ImageIO.doWrite(ImageIO.java:1612) at javax.imageio.ImageIO.write(ImageIO.java:1578) at kawa.lib.kawa.pictures.imageWrite(pictures.scm:150) at b201.run(b201.scm:3) at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:293) at gnu.expr.CompiledModule.evalModule(CompiledModule.java:42) at gnu.expr.CompiledModule.evalModule(CompiledModule.java:60) at kawa.Shell.runFile(Shell.java:565) at kawa.Shell.runFileOrClass(Shell.java:468) at kawa.repl.processArgs(repl.java:689) at kawa.repl.main(repl.java:811) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49367> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |