public static Point getSize(final byte[] image) {
        final Options options = new Options();
        options.inJustDecodeBounds = true;
        BitmapFactory.decodeByteArray(image, 0, image.length, options);
        return new Point(options.outWidth, options.outHeight);
    }
Get size of image

@param image
@return size
app/src/main/java/com/github/pockethub/android/util/ImageUtils.java