Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor AddWatermarkIfNeeded for clarity and readability
Refactored the `AddWatermarkIfNeeded` method in the `ImageController` class to improve readability and logic clarity. The method now returns early if the watermark is not enabled, should be skipped, or if the file extension is `.gif`. This change simplifies the code by removing nested conditions and making the watermarking logic more straightforward. The use of `using var` for the `ImageWatermarker` instance remains unchanged to ensure proper resource disposal.
- Loading branch information