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

DEV-989 feed: processing jpgs & pngs in digifeed packages #111

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Conversation

mwarin
Copy link
Contributor

@mwarin mwarin commented Jan 30, 2024

@mwarin mwarin changed the title started turning pngs into tiffs DEV-989 feed: processing jpgs & pngs in digifeed packages Feb 14, 2024
@mwarin mwarin marked this pull request as ready for review February 15, 2024 18:51
Copy link
Member

@aelkiss aelkiss left a comment

Choose a reason for hiding this comment

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

Reformatting looks fine. There are certainly more opportunities for refactoring, unit testing within ImageRemediate, and rethinking the relationship and flow of code between ImageRemediate subclasses and this class, but I don't think we need to worry about that now.

The change I do think we need is some adjustment to headers we're extracting -- in particular we shouldn't copy the image height, width, color depth, etc, as this will all get carried forward when ImageMagick converts to TIFF -- but we do need to make sure to try to get the resolution info from PNGs.

lib/HTFeed/Stage/ImageRemediate.pm Outdated Show resolved Hide resolved
lib/HTFeed/Stage/ImageRemediate.pm Outdated Show resolved Hide resolved
lib/HTFeed/Stage/ImageRemediate.pm Outdated Show resolved Hide resolved

# Build and return a hash of jpg metadata.
sub extract_jpg_metadata {
my $olf = shift; # ref to $self->{oldFields}, a hash of exiftool data

This comment was marked as resolved.

@mwarin mwarin requested a review from aelkiss February 19, 2024 21:33
Copy link
Member

@aelkiss aelkiss left a comment

Choose a reason for hiding this comment

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

This is looking good to me at this point (assuming that tests in feed_internal pass when running against this branch) Please feel free to do a merge & release when ready.

@mwarin mwarin merged commit ab3f341 into main Feb 29, 2024
1 check passed
@mwarin
Copy link
Contributor Author

mwarin commented Jun 3, 2024

deleting an old merged branch

@mwarin mwarin deleted the DEV-989 branch June 3, 2024 18:20
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

2 participants