Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6663937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:33:16+00:00 2026-05-26T02:33:16+00:00

I have a program which rescales images using the mortennobel image library for the

  • 0

I have a program which rescales images using the mortennobel image library for the rescale filter/algorithm. I’m using the Java standard library ImageIO to read the file into a BufferedImage object. However the trouble I’m having is that the ImageIO library only accepts standard forms of images and so if the ImageIO.read() function throws an IOException I want to catch it and convert the image into a standard form such as a JPEG.

Just to clarify, the problem I’m having is that some of the images are not of a standard JPEG format i.e. FF D8 FF E0 JFIF, instead they have been produced by a digital camera or edited in photoshop and the format is FF D8 FF E1 Exif. It’s possible to change this format by loading the image into a program like paint and saving again as JPEG however its not ideal for my situation as I’d like it to be automated.

Convert from: FF D8 FF E1 Exif to FF D8 FF E0 JFIF

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:33:17+00:00Added an answer on May 26, 2026 at 2:33 am

    The first field after FFE0 marker is the length field. It’s 16 bits long big endian and includes the length of the length field but not the FFE0 marker. Just copy the FFE0 marker and the associated data from an existing jpeg and fit it in between FFD8 and FFE1.

    According to the JFIF standard, the JFIF header should follow immediately after SOI (FFD8). Every jpeg without a JFIF header is essentially broken as there’s no way of knowing what color coding is used. Of course there’s the Adobe jpeg’s but they don’t really count. If there’s a JFIF header, you know that the image is coded in YCbCr. If there’s no JFIF header, you could maybe assume it’s YCbCr, but you can’t know for sure.

    You can read more about the JFIF standard here: http://www.w3.org/Graphics/JPEG/jfif3.pdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program which write logging as Text File. namespace logging { using
I have a program which accepts 2 N -digit numbers, multiplies them using threads
I have a program which transmits(broadcasts) and receives UDP packets simultaneously using pthreads. What
I have program which reads MSMQ using GetAllMessages but it does not remove messages
I have a program which creates a timer using timerfd_create (the timer when it
I have a program which is able to retrieve various registry values using C#
I have a program which consists of two simple Java Swing files. How do
I have a program which is: import java.io.*; import java.util.*; public class ExecBashCommand {
I have program which loads an assembly using Asssembly.LoadFrom method. Some time later I
I have program which has servers interacting with each other using Twisted's remote procedure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.