The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Stripping EXIF metadata from image uploads in a Metronic project

I'm working on a Metronic-based web app where users upload photos (avatars and a small gallery). Before those files are stored or rendered, I want to strip EXIF and other metadata so things like GPS location and camera details are not kept with the image.

Has anyone done this alongside the Metronic upload components? I'm weighing a client-side pass before the form submits versus stripping the file on the server once it arrives (PHP/Laravel in our case). Curious what has been reliable for you, especially with large phone photos.

I wrote up a short explainer of what typical exif data contains and why it is worth removing: exif data. If you have a pattern that fits a Metronic + Laravel setup, I would like to hear it.

Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)

Hi there,

Understanding

You're looking to strip EXIF metadata (GPS location, camera details) from user-uploaded photos in a Metronic + Laravel project, and wondering whether to do it client-side or server-side.

Solution

The Metronic file upload components handle the frontend UI (styling, drag-and-drop). They don't process files on the server — that's entirely your Laravel application's responsibility.

For EXIF stripping, server-side is the reliable approach:

  1. Intervention Image — the standard PHP image library. It strips EXIF data by default when saving. Works well with Laravel upload flows.
  2. PHP's built-in functions — exif_read_data() for inspection, paired with GD/Imagick to rewrite without metadata.
  3. exiftool — via PHP exec, for more granular control.

Client-side can work for basic removal but phone photos are large and JS processing has memory limits. Server-side is safer, especially for large files.

In Laravel, handle it in your upload controller:

use Intervention\Image\Facades\Image;

$image = Image::make($request->file('avatar'));
// Intervention strips EXIF by default when saving
$image->save(storage_path('app/public/avatars/' . $filename));

Sources

Next Steps

Set up the server-side processing in your Laravel controller. The Metronic upload component handles the frontend — wire the form submission to your Laravel endpoint.


This reply was generated by AI. A human will follow up if needed.

Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.