How to adjust sent image quality

Starting from version 5.3.4, you can configure image quality, including compression ratio, width, and height.

Configuration file path: values/rc_configuration.xml

    <!--Original image compression ratio-->
    <integer name="rc_image_quality">85</integer>
    <!--Compressed width and height of the original image-->
    <integer name="rc_image_size">1080</integer>

When creating an ImageMessage, add a boolean parameter to specify if you want to send the original image.

    /**
     * Create an ImageMessage object.
     *
     * @param localUri The URI of the large image.
     * @param isFull Whether to send the original image.
     * @return An instance of the ImageMessage object.
     */
    public static ImageMessage obtain(Uri localUri, boolean isFull) {
        return new ImageMessage(localUri, isFull);
    }