Questions tagged [javax.imageio]

The Java Image I/O API (the javax.imageio package) contains the basic classes and interfaces for reading/writing BufferedImages and RenderedImages from/to image files and streams.

The Java Image I/O API (the javax.imageio package) contains the basic classes and interfaces for reading/writing BufferedImages and RenderedImages from/to image files and streams.

Many common image I/O operations may be performed using the static methods of the ImageIO class.

The package contains classes describing the contents of image files, including metadata and thumbnails (IIOImage); for controlling the image reading process (ImageReader, ImageReadParam, and ImageTypeSpecifier) and image writing process (ImageWriter and ImageWriteParam); for performing transcoding between formats (ImageTranscoder), and for reporting errors (IIOException).

All implementations of javax.imageio provide the following standard image format plug-ins: JPEG, PNG, BMP, WBMP and GIF.

The javax.imageio package has been available since Java (J2SE) 1.4.

1092 questions
-2
votes
1 answer

How to set GPS coordinates of Image?

I want to set latitude and longitude of Image for an application in JAVA. Please share some resourceful information with me. Thank you for your time. I want to set like this:
Jay
  • 1,055
  • 2
  • 8
  • 17
-2
votes
1 answer

Input == null in ImageIO.read

Yes, this is a duplicate of like 100 different posts, but none of the solutions have worked for me. The way I am defining pictures in my game is this: frontPage = ImageIO.read(new File("frontpage.png")); It has worked fine so far, but now, I am…
joey942
  • 159
  • 2
  • 11
-2
votes
1 answer

Error in resizing Image with the width of the label Java 8.0

Hi Guys I'm having issue in my Image, I just want to resize the image w/ my label. By using the filechooser. Here is the code below. try { File file = jfc.getSelectedFile(); java.net.URL url = file.toURL(); …
kornben
  • 45
  • 1
  • 5
-2
votes
2 answers

Java Convert TIff to PNG issue

I have a file that when I try to convert it will not, but i can convert the file in a online converter. What could be the cause of this? FileSeekableStream fss = new FileSeekableStream(tifFile); ImageDecoder decoder =…
Mason Smith
  • 115
  • 1
  • 15
-2
votes
1 answer

what is the easiest way to print an image on screen on java?

what is the easiest way to print a BufferedImage object (an image) on screen in java eclipse? iv red some ways but those are so much in detail: BufferedImage img=...
shayan
  • 29
  • 6
-2
votes
1 answer

How could I convert a image with letters to text?

I need to find letters in a image. I need a help to write an algorithm to decode the image. I got the image an there is converted in a ByteArrayOutputStream but I don´t know what I do with it. There is my java code: URL url = new…
bpedroso
  • 4,617
  • 3
  • 29
  • 34
-2
votes
3 answers

PrintScreen in java only working when main?

I've been trying to add this code to my project : public static void Save() throws HeadlessException, AWTException, IOException { Toolkit tk = Toolkit.getDefaultToolkit(); Dimension Dim = tk.getScreenSize(); Rectangle screenRect = new…
Caio Petrelli
  • 37
  • 1
  • 7
-3
votes
1 answer

Java not creating Image file (Using ImageIO)

I have been given an assignment where I have to read two images from secondary memory and I have to store them in two separate matrices. Then I have to multiply these matrices and convert the resultant matrix back to an image and store it in the…
c2yCharlie
  • 29
  • 5
-3
votes
1 answer

ImageIO write only load half the picture (socket)

I'm trying to send an image from client to server using socket. I am able to send the image to server directory, but the image sent is not full. What should I change? Client code : Part filePart = request.getPart("file"); InputStream fileContent =…
-3
votes
2 answers

Decoding .webm format doesn't return any BufferedImages

My code here is compiling correctly, but I am running into the problem that my ArrayList of BufferedImages is always empty. Honestly I don't have any knowledge regarding ImageIO or the likes! import java.awt.image.BufferedImage; import…
user1861013
  • 139
  • 8
-4
votes
2 answers

How to convert a binary image data to a jpg file in Java where every 10bits in the binary data represent a pixel?

I am receiving a stream of bits over the Ethernet. I am collecting the bits in a byte[] array in Java(I am collecting them in a byte[] because I think its relevant).The stream is a digitized image where every 10 bits represent a pixel. There are…
sto_user
  • 31
  • 1
  • 8
-5
votes
1 answer

Java can't read image input file.

here is the screenshothere is the screenshot error please help me solve this error for e to deploy our system this week.
1 2 3
72
73