Bug 271 : Images created with saveFrame() cannot be loaded into PImage.
Last modified: 2006-03-28 05:00




Status:
RESOLVED
Resolution:
DUPLICATE of bug 260
Priority:
P1
Severity:
enhancement

 

Reporter:
splat
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-01-12 23:10
I have been unsuccessful with loading TIF or TGA images which have been created
using saveFrame();

With TGAs I get: "loadImage(): bad targa image format"
(Although the TGA opens fine in other graphics applications)

With TIFs I get:
" java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0"
(With the call, image(b, 10, 10, 10, 10);)

Has anyone else encountered this issue? The entire TIF error is this:

_________________________________

java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0

at java.awt.image.DirectColorModel.createCompatibleWritableRaster
(Unknown Source)

at java.awt.image.BufferedImage.<init>(Unknown Source)

at processing.core.PGraphics2$ImageCache.<init>(PGraphics2.java:558)

at processing.core.PGraphics2.imageImpl(PGraphics2.java:520)

at processing.core.PGraphics.image(PGraphics.java:1674)

at processing.core.PGraphics.image(PGraphics.java:1655)

at processing.core.PApplet.image(PApplet.java:6134)

at Temporary_4944_732.draw(Temporary_4944_732.java:10)

at processing.core.PApplet.display(PApplet.java:1183)

at processing.core.PGraphics.requestDisplay(PGraphics.java:520)

at processing.core.PApplet.run(PApplet.java:1009)

at java.lang.Thread.run(Unknown Source)
_________________________________________________________

I've never gotten a created image to load so I think its a bug, the only other thing I
can think of could be my playing around with JDK 1.5 (but I still have and use 1.4
and I dont think it should effect processing.)

Thanks in advance!
Additional Comment #1 From fry 2006-01-15 06:56
a known issue, though it's documented that these don't work. will add this
at some point.
Additional Comment #2 From fry 2006-03-28 05:00


*** This bug has been marked as a duplicate of 260 ***