Skip to content

[Bug] Generative fill fails when input image is larger than 25 megapixels #232

@tpiros

Description

@tpiros

Bug Report

Describe the bug

Using generative fill with images that are bigger than 25 megapixels is causing a transformation error. Adding a c_limit before a b_gen_fill call in the transformation chain gets rid of this issue.

Is this a regression?

No

Steps To Reproduce the error

  1. Create a project with one of the community SDKs
    eg. Svelte:
<script>
	
  import { CldImage } from 'svelte-cloudinary';


</script>

    <CldImage
  src="demo/nice-red-shoe.jpg"
  width="960"
  height="600"
  alt=""
  crop="pad"
  fillBackground
/>

Add an image where the MP is higher than 25MP. Play around with fillBackground and crop options.

Expected behaviour

fillBackground should restrict the image to match the MP limit

CodeSandbox or Live Example of Bug

https://codesandbox.io/p/devbox/mqsvyn?file=%2Fsrc%2Froutes%2F%2Bpage.svelte%3A5%2C39

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions