Skip to content

Conversation

@itinerare
Copy link
Member

Improves/makes explicit the WebP support already present, as well as adding several additional image processing and storage improvements and options:

  • Add config setting for which dimension (shorter/longer) to target when resizing masterlist images
  • Add config settings for masterlist fullsize and gallery submission image format
    • Store masterlist fullsize extension separately
    • Add a command to backfill extension for existing fullsizes
  • Add config setting to cap gallery submission image dimensions
  • Add WebP to supported mimes for character images, gallery submission images
  • Use Imagick for processing large (2k+ px in any dimension) images. This helps address GD's difficulty with these (which can lead to unnecessary memory usage spikes and failing to process them), but does require installing imagick if not already present! It's usually available as both its own package (imagemagick) and associated php extension (php8.1-imagick, for instance).
  • Fix background color being applied to WebP images (as they also support transparency).

Requires installing imagemagick/php extension, php artisan migrate, php artisan app:fill-character-fullsize-extensions if there are already fullsize images stored.

itinerare and others added 4 commits December 7, 2023 12:27
- make masterlist dimension target configurable
- make masterlist fullsize format configurable/stored separately
- fix background application so that webp is excluded
- use imagick for large (2k px+ images)
- add webp to allowed upload formats
- add command to backfill fullsize image extension
- add webp to allowed upload formats
- use imagick for large (2k px+ images)
- add configurable/optional size cap
@itinerare itinerare added enhancement New feature or request needs review Pull requests that are pending community review labels Dec 7, 2023
@itinerare itinerare added reviewed Pull requests that have received community review and are pending merge and removed needs review Pull requests that are pending community review labels Dec 10, 2023
@itinerare
Copy link
Member Author

itinerare commented Dec 10, 2023

Waiting for #735 to be merged (to be safe).

ScuffedNewt

This comment was marked as resolved.

@ScuffedNewt
Copy link
Contributor

wrong pr lol

Conflicts:
	resources/views/galleries/create_edit_submission.blade.php
@itinerare itinerare merged commit f82a7f2 into lk-arpg:develop Dec 11, 2023
@itinerare itinerare deleted the feature/improved-image-processing branch December 11, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request reviewed Pull requests that have received community review and are pending merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants