Skip to content

resize: added upscaling params for h & w #100

resize: added upscaling params for h & w

resize: added upscaling params for h & w #100

Triggered via pull request August 21, 2024 09:18
Status Failure
Total duration 51s
Artifacts

tests.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

5 errors
Tests (3.9, pypi, redis): flask_iiif/api.py#L1
Black format check --- /home/runner/work/flask-iiif/flask-iiif/flask_iiif/api.py 2024-08-21 09:18:11.633631+00:00 +++ /home/runner/work/flask-iiif/flask-iiif/flask_iiif/api.py 2024-08-21 09:18:47.792837+00:00 @@ -150,11 +150,11 @@ ) width = max(1, int(real_width * percent)) height = max(1, int(real_height * percent)) - # Check if it is `,h` or `^,h` + # Check if it is `,h` or `^,h` elif dimensions.startswith(",") or dimensions.startswith("^,"): if dimensions.startswith(","): # Handle `,h` height = int(dimensions[1:]) else: # Handle `^,h` height = int(dimensions[2:]) @@ -174,13 +174,17 @@ ratio = min(ratio_x, ratio_y) # calculate the dimensions width = max(1, int(real_width * ratio)) height = max(1, int(real_height * ratio)) - # Check if it is `w,` or `^w,` - elif dimensions.endswith(",") or ((dimensions.startswith("^") and dimensions.endswith(","))): - if dimensions.endswith(",") and not dimensions.startswith("^"): # Handle `w,` + # Check if it is `w,` or `^w,` + elif dimensions.endswith(",") or ( + (dimensions.startswith("^") and dimensions.endswith(",")) + ): + if dimensions.endswith(",") and not dimensions.startswith( + "^" + ): # Handle `w,` width = int(dimensions[:-1]) else: # Handle `^w,` width = int(dimensions[1:-1]) # find the ratio
Tests (3.9, pypi, redis)
Process completed with exit code 1.
Tests (3.12, pypi, redis)
The job was canceled because "_3_9_pypi_redis" failed.
Tests (3.12, pypi, redis): flask_iiif/api.py#L1
Black format check --- /home/runner/work/flask-iiif/flask-iiif/flask_iiif/api.py 2024-08-21 09:18:11.580178+00:00 +++ /home/runner/work/flask-iiif/flask-iiif/flask_iiif/api.py 2024-08-21 09:18:48.378721+00:00 @@ -150,11 +150,11 @@ ) width = max(1, int(real_width * percent)) height = max(1, int(real_height * percent)) - # Check if it is `,h` or `^,h` + # Check if it is `,h` or `^,h` elif dimensions.startswith(",") or dimensions.startswith("^,"): if dimensions.startswith(","): # Handle `,h` height = int(dimensions[1:]) else: # Handle `^,h` height = int(dimensions[2:]) @@ -174,13 +174,17 @@ ratio = min(ratio_x, ratio_y) # calculate the dimensions width = max(1, int(real_width * ratio)) height = max(1, int(real_height * ratio)) - # Check if it is `w,` or `^w,` - elif dimensions.endswith(",") or ((dimensions.startswith("^") and dimensions.endswith(","))): - if dimensions.endswith(",") and not dimensions.startswith("^"): # Handle `w,` + # Check if it is `w,` or `^w,` + elif dimensions.endswith(",") or ( + (dimensions.startswith("^") and dimensions.endswith(",")) + ): + if dimensions.endswith(",") and not dimensions.startswith( + "^" + ): # Handle `w,` width = int(dimensions[:-1]) else: # Handle `^w,` width = int(dimensions[1:-1]) # find the ratio
Tests (3.12, pypi, redis)
Process completed with exit code 1.