-
Notifications
You must be signed in to change notification settings - Fork 122
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
add automatic image type detection #4363
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks wonderful to me, I haven't got any suitable images to test it with, but it's deployed to TEST
as I think @paperboyo would like to give it a spin
common-lib/src/main/scala/com/gu/mediaservice/lib/cleanup/InsertGuardianImageType.scala
Outdated
Show resolved
Hide resolved
case DigitalSourceType("compositeSynthetic") => Illustration | ||
// unknown | ||
case other => | ||
logger.warn(s"Unexpected Iptc4xmpExt:DigitalSourceType value: $other. Consider adding a case for this value to DigitalSourceType.scala") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
/* TODO in scala 2.13: | ||
name match { | ||
case s"http://cv.iptc.org/newscodes/digitalsourcetype/$value" => | ||
Some(value) | ||
case _ => None | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
Co-authored-by: Tom Richards <[email protected]>
Seen on usage, image-loader, metadata-editor, cropper, kahuna (merged by @andrew-nowak 7 minutes and 40 seconds ago) Please check your changes! |
Seen on auth, thrall (merged by @andrew-nowak 7 minutes and 54 seconds ago) Please check your changes! |
Seen on media-api (merged by @andrew-nowak 8 minutes ago) Please check your changes! |
Seen on collections, media-api (merged by @andrew-nowak 8 minutes ago) Please check your changes! |
Seen on leases (merged by @andrew-nowak 9 minutes and 50 seconds ago) Please check your changes! |
What does this change?
Detect the image type (according to the Guardian vocabulary) from the Digital Source Type (IPTC vocab) when applicable.
How should a reviewer test this change?
How can success be measured?
Who should look at this?
Tested? Documented?