When you load a JPEG image in Delphi (both VCL and FMX), the image might appear rotated or even mirrored. This is often the case, when the image is a photo taken with a smartphone in portrait mode.

The reason is that the JPEG contains an additional "Exif" header, which specifies the orientation of the image. In order to display the image correctly, you must read the Exif header and rotate, flip or mirror the image after loading, according to the orientation information in the Exif header.

This small unit does it for you: it is the smallest and fastest JPEG Exif reader currently available for Delphi and automatically applies the necessary transformations to a TBitmap object after loading.

Useage:

procedure JPEGLoadBitmap(ABitmap: TBitmap; AFileName: String); overload;
procedure JPEGLoadBitmap(ABitmap: TBitmap; AStream: TStream); overload;

Features

  • JPEG loader honoring Exif information

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Delphi FMX JPEG loader with Exif

Delphi FMX JPEG loader with Exif Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Delphi FMX JPEG loader with Exif!

Additional Project Details

Operating Systems

Linux, Android, Apple iPhone, Mac, Windows

Registered

2025-02-03