# Issue upscaling image with BIGJPG API

**URL:** <https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409>\
**Category:** Questions\
**Tags:** error\
**Created:** [April 10, 2024, 7:30pm UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409 "2024-04-10T19:30:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frozbee](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Frozbee](https://community.make.com/u/Frozbee)\
**Post date:** [April 10, 2024, 7:30pm UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/1 "2024-04-10T19:30:56Z")

</div>

Hello,

I am trying to enlarge animage with BIGJPG but I have an issue with an API request.  
Please find below the documentation of BIGJPG API.

```auto
Enlarge API  

    curl -d '{"style": "art", "noise": "3", "x2": "1", "input": "YOUR_IMAGE_URL"}' \
         -H 'X-API-KEY:Myapikey' \
         https://bigjpg.com/api/task/

- JSON format
- style can be 'art', 'photo' which means 'cartoon illustration', 'photo'
- noise can be '-1', '0', '1', '2', '3' which means 'None', 'Low, 'Medium', 'High', 'Highest'
- x2 can be '1', '2', '3', '4' which means 2x, 4x, 8x, 16x
- input your enlarge image url

```

When i am using the upscale x1 or x2 it does work, but with x3 or x4 i have a “param\_error”.

```auto
[
    {
        "statusCode": 200,
        "headers": [
            {
                "name": "date",
                "value": "Wed, 10 Apr 2024 19:30:05 GMT"
            },
            {
                "name": "content-type",
                "value": "application/json; charset=UTF-8"
            },
            {
                "name": "content-length",
                "value": "25"
            },
            {
                "name": "connection",
                "value": "close"
            },
            {
                "name": "server",
                "value": "YUNKD/WAF 2.0.6"
            },
            {
                "name": "cache-control",
                "value": "no-cache"
            },
            {
                "name": "x-cache-status",
                "value": "MISS"
            }
        ],
        "cookieHeaders": [],
        "data": {
            "status": "param_error"
        },
        "fileSize": 25
    }
]

```

It does work when I do the API request from my console, but in [Make.com](http://Make.com) it doesn’t work.  
I contacted the support of BIGJPG and for them, it seems to be an issue on [Make.com](http://Make.com).

Any ideas ?

Thank you for your help !

Have a great evening 🙂

Froz

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [April 10, 2024, 11:13pm UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/2 "2024-04-10T23:13:11Z")

</div>

Welcome to the Make community!

## 1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:  
 ![Screenshot_2023-10-07_111039](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/0/20b53cdf28d223e85fc9654c350eadebd37f5d3c.png)

## 2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

 ![Screenshot_2023-08-24_230826](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/2ff55ee04419049c127f183db2b3eebfbbbbfc64.png)  
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

> blueprint.json (12.3 KB)

## 3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.

 ![Screenshot_2023-10-06_141025](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2876156ab3ea5bc9e40bbc0edfb9f025406b7c48.png)

### A.

Save the bundle contents in your text editor as a `bundle.txt` file, and upload it here into this discussion thread.

Uploading it here will look like this:

> bundle.txt (12.3 KB)

### B.

If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle in this manner:

- Either add three backticks ````` before and after the code, like this:

- Or use the format code button in the editor:  
 ![Screenshot_2023-10-02_191027](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/4/b485b6572c7a1c438f9b191c54e63d351008304c.png)

Providing the output bundles will allow others to _replicate_ what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

---

<div class="post-metadata">

**Author:** ![Frozbee](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Frozbee](https://community.make.com/u/Frozbee)\
**Post date:** [April 11, 2024, 6:56am UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/3 "2024-04-11T06:56:27Z")

</div>

Hello @samliew,

Thank you for you advise, please find below:

## 1. Screenshots of module fields and filters

I am just running a test scenario to identify the problem:

 ![Capture d’écran 2024-04-11 à 08.47.22](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/8/58ff4df5dcaeafe43016cccdd295dc87fcb0960b.png)

## 2. Scenario blueprint

[blueprint (1).json](https://community.make.com/uploads/short-url/pIK2tLeHiWzYjOOr0wOywrMJ2rJ.json) (9.9 KB)

## 3. Output bundles

### A. Successful output Bundle:

[Sucess.txt](https://community.make.com/uploads/short-url/rPOdrGY47gI8UZzIRJPnoB2agQy.txt) (1.0 KB)

### B. Error output Bundle:

[Error.txt](https://community.make.com/uploads/short-url/nR5aiFVyxcUp6BtzuKzj4G6GhQ.txt) (952 Bytes)

Just to sum up, the issue I have is when i change the upscale value. It does work for x1 et x2 but doesn’t for x3 and x4.

Hope someone has this issue or can help me resolve that 🙂

Have a great day !

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [April 11, 2024, 7:19am UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/4 "2024-04-11T07:19:23Z")

</div>

The numbers are not the multiplication/upscale factor. It is simply the option ID.

The accepted option values are only 1, 2, 3, and 4.

1 & 2 are available on the free tiers, and 3 & 4 are only available for the paid tiers. It is likely failing because you are not on a subscription.

Please refer to the API tab as to what upscale IDs correspond to which upscale multiplier.

I.e.: If you want an upscale of 4x, you need to be using the option ID “`2`”

---

<div class="post-metadata">

**Author:** ![Frozbee](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Frozbee](https://community.make.com/u/Frozbee)\
**Post date:** [April 11, 2024, 7:30am UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/5 "2024-04-11T07:30:06Z")

</div>

Thank you for your fast reply.  
Yes I understood the option values, but thanks for the reminder.

It could make sense but I am in the Standard Plan, which normally should give me access to the full upscale:

 ![Capture d’écran 2024-04-11 à 09.29.45](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/6/e60f51fdd24c751b5d4271e55370f9e5ac017a6e.png)

Furthermore, I made a curl request in my terminal, with the same parameters and it does work, but still not working on my module on make.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [April 11, 2024, 7:37am UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/6 "2024-04-11T07:37:33Z")

</div>

It might be that the service could not access the image URL to download the image for processing. Try switching to the U.S. server under the Settings tab.

If this continues to fail, I’m out of ideas. You should contact their support at [i@bigjpg.com](mailto:i@bigjpg.com) to report the bug.

---

<div class="post-metadata">

**Author:** ![Frozbee](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@Frozbee](https://community.make.com/u/Frozbee)\
**Post date:** [April 11, 2024, 7:45am UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/7 "2024-04-11T07:45:43Z")

</div>

Thanks @samliew for your lead.

I felt that there was something weird considering the fact that it was working on the terminal but not on make. And by checking the location server I found the root cause. It wasn’t because of the server but the keychain implemented in my http module. I guess i was using the API-key from my free plan…

Thank you ! 🙂

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [April 25, 2024, 7:49am UTC](https://community.make.com/t/issue-upscaling-image-with-bigjpg-api/33409/8 "2024-04-25T07:49:04Z")

</div>


