public int getWidth() {
    parseMetadataIfNeeded();
    return mWidth;
  }
Returns the image width if known, else -1.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java