Package 

Object ThumbnailSizeChecker


  • 
    public class ThumbnailSizeChecker
    
                        

    Utility class to consistently check whether a given thumbnail size will be sufficient for a given request with com.facebook.imagepipeline.common.ResizeOptions.

    • Method Detail

      • isImageBigEnough

         final static Boolean isImageBigEnough(Integer width, Integer height, ResizeOptions resizeOptions)

        Checks whether the producer may be able to produce images of the specified size. This makes no promise about being able to produce images for a particular source, only generally being able to produce output of the desired resolution.

        Parameters:
        width - the desired width
        height - the desired height
      • getACCEPTABLE_REQUESTED_TO_ACTUAL_SIZE_RATIO

         final Float getACCEPTABLE_REQUESTED_TO_ACTUAL_SIZE_RATIO()

        The ratio between the requested size and the minimum thumbnail size which will be considered big enough. This will allow a thumbnail which is actually 75% of the requested size to be used and scaled up.