Package org.apache.tika.parser.enricher
Class RecordedSizeCheck
java.lang.Object
org.apache.tika.parser.enricher.RecordedSizeCheck
- All Implemented Interfaces:
Serializable,ImageCheck
The
_min-width/_min-height of a "text-recognizers" entry as a check:
an image whose recorded dimensions fall short in either is refused; one of unknown size is
admitted. Reads metadata only.- Since:
- Apache Tika 4.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tika.parser.enricher.ImageCheck
ImageCheck.Verdict -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(ImageProbe image, Metadata metadata, ParseContext context) intintstatic booleanTrue when the metadata records a width or height below the minimum.
-
Constructor Details
-
RecordedSizeCheck
public RecordedSizeCheck(int minWidth, int minHeight)
-
-
Method Details
-
getMinWidth
public int getMinWidth() -
getMinHeight
public int getMinHeight() -
tooSmall
True when the metadata records a width or height below the minimum. -
check
- Specified by:
checkin interfaceImageCheck- Parameters:
image- the image and what earlier checks have already learned about itmetadata- the metadata of the image the engine would be handedcontext- the parse context
-