Skip to content

Add embedded preview support for CorelDRAW (.cdr) files#61634

Open
7snack7 wants to merge 1 commit into
nextcloud:masterfrom
7snack7:feature/cdr-preview
Open

Add embedded preview support for CorelDRAW (.cdr) files#61634
7snack7 wants to merge 1 commit into
nextcloud:masterfrom
7snack7:feature/cdr-preview

Conversation

@7snack7

@7snack7 7snack7 commented Jun 27, 2026

Copy link
Copy Markdown
  • Resolves: #

Summary

Screen 2026-06-28 в 02 18 34

This pull request adds support for generating previews for CorelDRAW (.cdr) files.

Currently, CDR files are displayed with a generic icon even when they contain an embedded preview image. This change introduces a new preview provider that extracts the embedded thumbnail directly from the CDR archive.

Both modern CorelDRAW files containing previews/thumbnail.png and legacy files containing metadata/thumbnails/thumbnail.bmp are supported.

The implementation has no external dependencies and does not require ImageMagick or temporary file creation.

Tested on a production-like Nextcloud instance used within our company with real production CDR files.

TODO

  • Add PHPUnit tests for the CDR preview provider.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Dmitriy Pankratov <7snack7@gmail.com>
@7snack7 7snack7 requested a review from a team as a code owner June 27, 2026 19:33
@7snack7 7snack7 requested review from Altahrim, icewind1991, leftybournes and salmart-dev and removed request for a team June 27, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant