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

switch relative to absolute url during downsizing #283

Merged
merged 3 commits into from
Aug 31, 2022
Merged

switch relative to absolute url during downsizing #283

merged 3 commits into from
Aug 31, 2022

Conversation

tylervick
Copy link
Member

#275 fixes relative attachment URLs

However, when running the downsizeImages step (with -z flag), the relative URL is passed to the converter which ultimately fails.

To fix this, we'll reconstruct the absolute URL when converting the image. Afterwards, a new relative URL will be returned pointing to the new downsized image.

To test:
Run xchtmlreport -r path/to/xcresult -z from a different working directory, verify heic screenshots are converted to jpeg and properly displayed in the report.

@tylervick tylervick merged commit 20e5e98 into XCTestHTMLReport:main Aug 31, 2022
@tylervick tylervick deleted the tvick/fix-downsized-urls branch August 31, 2022 03:10
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.

None yet

1 participant