8000 fix: update base image to 1.8.1, enhance error message in InputImage,… by sadok-f · Pull Request #569 · flyimg/flyimg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: update base image to 1.8.1, enhance error message in InputImage,… #569

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

Merged
merged 3 commits into from
Jul 4, 2025

Conversation

sadok-f
Copy link
Member
@sadok-f sadok-f commented Jul 4, 2025

fix: update base image to 1.8.1, enhance error message in InputImage and add AVIF test cases

@sadok-f sadok-f requested a review from Copilot July 4, 2025 07:13
@sadok-f sadok-f self-assigned this Jul 4, 2025
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the base Docker image to 1.8.1, improves the exception message in InputImage, and adds AVIF test coverage for face cropping.

  • Bump base image from 1.7.1 to 1.8.1.
  • Enhance ReadFileException to include the missing file path.
  • Add AVIF output test in FaceDetectProcessorTest and corresponding constant in BaseTest.

Reviewed Changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.

File Description
Dockerfile Updated flyimg/base-image tag to 1.8.1.
src/Core/Entity/Image/InputImage.php Enhanced ReadFileException message to include sourceImageUrl.
tests/Core/BaseTest.php Added FACES_CP0_TEST_IMAGE_AVIF constant for AVIF reference.
tests/Core/Processor/FaceDetectProcessorTest.php Added AVIF output test and file existence/size assertions.
Comments suppressed due to low confidence (3)

tests/Core/Processor/FaceDetectProcessorTest.php:23

  • [nitpick] The variable $filesize2 is ambiguous. Consider renaming it to something like $expectedFilesize for clarity.
        $this->assertEquals($filesize, $filesize2);

src/Core/Entity/Image/InputImage.php:189

  • Consider adding a unit test to cover the new exception message when a local file path does not exist, ensuring it includes the missing path.
                throw  new ReadFileException('Local file ' . $this->sourceImageUrl . ' does not exist.');

tests/Core/Processor/FaceDetectProcessorTest.php:26

  • [nitpick] The docblock indentation is inconsistent with the rest of the file. Align it to 4 spaces to match the method definitions.
     /**

sadok-f and others added 2 commits July 4, 2025 10:12
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ception constructor for better flexibility; enhance tests for exception handling
@sadok-f sadok-f merged commit 3ad541d into main Jul 4, 2025
16 checks passed
@sadok-f sadok-f deleted the update-base-image branch July 4, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant
0