Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Improve file processing #724

Merged
merged 2 commits into from
May 13, 2024
Merged

Conversation

twoldanski
Copy link
Collaborator

  • new simplified output (off by default)
  • new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst
  • code refactoring
  • allows to process more image formats

Resolves: #247, #617

@coveralls
Copy link

coveralls commented May 9, 2024

Pull Request Test Coverage Report for Build 9033524206

Details

  • 136 of 146 (93.15%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.9%) to 65.949%

Changes Missing Coverage Covered Lines Changed/Added Lines %
Classes/Utility/FileUtility.php 133 143 93.01%
Totals Coverage Status
Change from base Build 9032111423: 1.9%
Covered Lines: 949
Relevant Lines: 1439

💛 - Coveralls

@kitzberger
Copy link
Contributor

@twoldanski, works like a charm, thanks!

- new simplified output (off by default)
- new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst
- code refactoring
- allows to process more image formats

Resolves: #247, #617
- new simplified output (off by default)
- new options to process files (custom autogenerate feature), filter & alias properties for much cleaned up output. Useful with large sites with a lot of images on page. See options Documentation/Developer/Images.rst
- code refactoring
- allows to process more image formats
- add additional tests

Resolves: #247, #617
@lukaszuznanski lukaszuznanski merged commit 56cc23f into master May 13, 2024
8 checks passed
Copy link

@develth develth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some issues regarding image cache / processing

$image,
array_merge(
['fileExtension' => $fileExtension],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change results into the images won´t be reused by ProcessedFileRepository::235, because the missing fileExtension results into another configurationsha1 and on each request the image is processed

@develth
Copy link

develth commented Sep 11, 2024

@twoldanski @lukaszuznanski how we should proceed here? reimplement the fileExtension only? What was the reason that it got removed?

@twoldanski
Copy link
Collaborator Author

@develth can create new issue? It was not removed, it should be applied. You have issue with 4.3.2?

Also please provide example typoscript you are using.

@develth
Copy link

develth commented Sep 11, 2024

It was not removed, it should be applied.

@twoldanski from the marked line, the fileExtension is removed. Do not see any part where it should get applied before fetchin a already processed media?

Also please provide example typoscript you are using.

Yes, had issues until i braught back fileExtension in my overridden GalleryProcessor

@develth
Copy link

develth commented Sep 11, 2024

Created an Issue:
#768

This pull request was closed.
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.

Image processing is inconsistent between FilesProcessor and Media/ImageViewHelper
5 participants