Image-shrink is not working

What’s wrong with my configuration? Does not seem to be shrinking any files.


<script type="module">
    import * as LR from "https://cdn.jsdelivr.net/npm/@uploadcare/blocks@0.32.4/web/lr-file-uploader-regular.min.js";

    LR.registerBlocks(LR);
</script>

<style>
.my-config {
  --darkmode: 0;
  --h-accent: 223;
  --s-accent: 100%;
  --l-accent: 61%;
}
</style>

<lr-config ctx-name="my-uploader" pubkey="{MYKEY}" max-local-file-size-bytes="1000000000" img-only="true" image-shrink="800x600" confirm-upload="true"
></lr-config>
          <lr-file-uploader-minimal
            css-src="https://cdn.jsdelivr.net/npm/@uploadcare/blocks@0.32.4/web/lr-file-uploader-minimal.min.css"
            ctx-name="my-uploader"
            class="my-config"
          >
</lr-file-uploader-minimal>

Hi @Peter, the image-shrink feature was added in version 0.33.0 (changelog). You need to upgrade the version of Blocks to at least 0.33.0.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.