Rezise Image with code Python in GCP

Summary

The problem is the resize image in the PDF editor. Now Tadabase has alpha version PDF editor, it is not resizing larges images in the Table.

Solution

The solution was using Tadadase API, Cloudinary API and Virtual Machine in Google Cloud Platform (GCP).

We developed a Python Script, it runs in the virtual machine in GCP:

  1. The script uses GET Method and gets image links from Table with Tadabase API.
  2. The larges images are reduced as small images with Cloudinary API.
  3. The small images are POST in the Cloudinary cloud.
  4. The small images GET links Cloudynary cloud and POST in Tadabase Table.
  5. And Voila, now the PDF editor works!

The PDF editor:

tenor

2 Likes

Well done, thanks for sharing!

1 Like