-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Related:
If WordPress/wordpress-develop#7034 lands and no client-side HEIC conversion is possible, it could be at least done on the server. The thumbnails could still be generated client-side though.
It would make things a bit more complicated:
- Check whether server supports HEIC
- Upload HEIC image to the server as a regular attachment
- Let WP do the conversion server-side, but do not create any thumbnails
- Get back the converted JPEG on the client
- Create all thumbnails on the client and sideload them
Might just be a matter of changing order of operations.
Before:
OperationType.TranscodeHeif
OperationType.ResizeCrop // Big image size threshold
OperationType.TranscodeImage // Compress
OperationType.GenerateMetadata
OperationType.GenerateCaptions
OperationType.Upload
OperationType.ThumbnailGeneration
After:
OperationType.Upload
OperationType.GenerateMetadata
OperationType.GenerateCaptions
OperationType.ThumbnailGeneration
Copilot