Services Plugins FAQs

Image compressor plugin compress from URL TypeError

Hi, I’m using this plugin: Image Compressor and Uploader Plugin | Bubble

It has worked flawlessly for over a year, but recently started getting this error when trying to compress from a URL:

image

Here’s a sample URL I’m attempting: https://frumpfighters.link/1614903019448x872611557039659100_out.png

This is the section of code that’s failing:

(function anonymous(b, d, k) {
    function g(c, a) {
        c.lastModifiedDate = new Date;
        c.name = a;
        return c
    }
    var e = !1
      , f = function(c) {
        fetch(c).then(function(a) {
            return a.blob()
        }).then(function(a) {
            a.type.split("/");
            a = g(a, d.name);
            b.publishState("file_name", d.name);
            b.publishState("size_before_compress", b.data.getSize(a.size));
            b.data.compress(a, d);
            b.data.compressedObj.name = d.name;
            b.data.blobToBase64(a, function(h) {
                b.publishState("uncompressed_base64", h)
            })
        })["catch"](function(a) {
            e ? console.log("Something went wrong, error: ", a) : (e = !0,
            f(b.data.corsAPI + c))
        })
    };
    f(d.image_url)
    //# sourceURL=PLUGIN_1597221235969x240651226286129150/Image-Compression-element_action--Compressor-Compress-from-URL-.js
}
)

Hi @gio,

Thank you so much for using our plugin and for reaching out to us :pray:

I’ve tested the plugin on the demo page and uploaded the image via the URL you provided. From my testing, the plugin successfully uploaded the image every time. Could you please try uploading it on the demo page and see if you encounter the same error there?

If you don’t, could you please send me screenshots of your setup so I can recreate it and try to replicate the error? Also, could you please confirm the version of the plugin you are currently using? If you’re not using the latest version, please update the plugin and check again!

I hope to hear back from you soon so we can get to the bottom of this :hugs:

Best regards :sunflower:

Hi @dorel, I updated the plugin to the latest version and it stopped that error, but it wasn’t working for me. I’m guessing I needed to update some settings on the compressor since it had been a while since I updated.

I went ahead and downgraded to 3.25.0 randomly and updated settings and it worked for me just fine. So you can disregard, it seems to be an old bug.

Hi @gio,

It’s likely that some fields may have changed, so please double-check to ensure everything is set up correctly if you will update to the latest version. I’m glad to hear that the issue you mentioned has been fixed and that it’s now working as expected :hugs:

If you have any other questions or concerns about our plugins, feel free to reach out to me here on the forum or contact the full team at support@zeroqode.com.

If you have a free moment, I’d appreciate it if you could leave your feedback about the support and our plugin in the form of a review. Feel free to rate the plugin as high as it deserves and provide a short description of your experience with Zeroqode products. To do this, go to the “Plugins” tab in your editor, click on the plugin, and scroll to the bottom of the page where you’ll find the review section!

Wishing you the best of luck!

Best regards :hibiscus: