How to run tinyjpg api?

Hello !

I want to compress an image with tiny jpg api


But i have aan error
I don’t understand what is false

Look :


Thank you !

Give the “Make a Basic Auth request” module a try, where the user is api and password is the api token they give you:

I was able to get the /shrink endpoint to work by passing JSON with a URL to the file to be converted:

Welcome to the Make community!

I have an example here which you can even import into your scenario How to compress images using TinyPNG via API - #4 by samliew

Please try to search the forum before posting, as others may have already faced the same issue previously. If any previous topic(s) did not help, link to it and state the issues you face trying to implement it.

To set up the API Key connection, you need to also include the text api: BEFORE the API key.

One way to get it encoded is to go to https://www.base64encode.org, type in api: followed by the API key, then click encode.
Screenshot_20240823_115051

Paste the encoded part here:
Screenshot_20240823_115200

CC: @Audra_Carpenter

Hope this helps! Let me know if there are any further questions or issues.
Note: I see hundreds of posts, notifications, and messages daily on this forum, so if I missed your reply, please message me to look at your reply.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

@samliew was there something omitted or wrong with my solution?

No, I didn’t find anything wrong with your solution (I didn’t verify it since you showed working examples).

Hi @Erve56

Instead of using the HTTP request module, where setting up the TinyPNG API requires a step-by-step process that can be prone to configuration errors, I’d recommend trying a ready-to-use image compression module. One such option is the Picsart Image Compression module, which simplifies the setup and reduces the chance of mistakes.

You can easily set the target format and make any necessary format changes. Here’s a quick guide to get started:

  1. Sign up at console.picsart.io and verify your account.
  2. Get your default app set up, which includes 200 free credits to start.
  3. Copy and paste your API key to create the Picsart connection in Make.
  4. You can reuse this connection across all your scenarios.
  5. Pick one of the compression modules. For example, if your source images are always PNGs, you can select the PNG2JPG module. If you need more flexibility, there are other configurable options available as well.


Here you can use Compressions as low as 75%. You will get a good balance of result image quality as well as small image size.

This approach should simplify your process and help avoid the granular setup required for TinyPNG.

– The Picsart Team

Built an app for tinypng

https://www.make.com/en/hq/app-invitation/418b180d583dc2473aa2b5eb2f457e19

No need to use http anymore