Skip to content

[Feature] Add File Preview and Metadata Display Before Processing #561

Description

@isha-9955

✨ Feature Overview

Implement a reusable file preview system that allows users to inspect uploaded files before performing any processing operation. The feature should support image thumbnails and PDF first-page previews along with displaying basic metadata such as filename, file size, dimensions, and page count.

This enhancement will help users verify that they have selected the correct files before proceeding with operations like conversion, merging, compression, OCR, or background removal.

🚀 Why is this Feature Needed?

Currently, users upload files and directly process them without any confirmation of the uploaded content. This can lead to accidental processing of incorrect files, especially when handling multiple PDFs or images.

Adding a preview layer would:

Improve user confidence before processing.
Reduce user errors and accidental conversions.
Enhance the overall user experience.
Provide reusable UI components that can be integrated across multiple tools.

🔧 Possible Implementation (Optional)
For Images:
Generate preview using URL.createObjectURL()
Display:
Thumbnail
File name
File size
Resolution
For PDFs:
Use PDF.js to render the first page.
Display:
First-page thumbnail
File name
File size
Total page count

This functionality can potentially be reused across multiple tools including:

PDF to PNG
PDF Merge
PDF Split
OCR
Remove Background
Image Compression
Images to PDF

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions