cloudinary-community / cloudinary-community/cloudinary-util

[Bug] Intermediate resources larger than 25MP trigger an error

Open
#232 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14
Forks
23
PR merge metrics
No merged PRs in 30d

Description

# **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:
```


import { CldImage } from 'svelte-cloudinary';


```

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.