openworld-community / ows-events

Project to promote, publish and collect events
https://afisha.peredelano.com
GNU General Public License v3.0
16 stars 1 forks source link

Research изучить провайдеров картинок #1359

Closed Sinamon-maker closed 1 month ago

Sinamon-maker commented 2 months ago

Описание

Опишите задачу

Критерии приёмки

Дополнительная информация

Добавьте информацию о задаче которую вы считаете важной

Ссылки на баги, относящиеся к этой задаче

Оценка

Оцените задачу

toprogramm commented 2 months ago

Предложение как можно организовать сей процесс

Бесплатный тариф Cloudinary

https://cloudinary.com/pricing

Приблизительная схема работы:

Обработка изображений

Это примерная схема работы с изображениями как я ее вижу, возможно есть что обсудить как это должно работать.

Sinamon-maker commented 2 months ago

https://cloudinary.com/documentation/transformation_counts - как считается количкство транчформаций - примерно 1tr - upload и 1tr - delivery via deliveryURL, картинка может храниться в стороннем хранилище

в этом провайдере четко указано подключение к сторонним хранилищам - в том числе есть и Digital Ocean https://imagekit.io/docs/image-optimization

Sinamon-maker commented 2 months ago

resize картинок возможно - на клиенте Pica или canva на сервере - Sharp Cloudinary only stores images on its own storage. When you upload an image to Cloudinary, it is stored in their infrastructure and delivered through their Content Delivery Network (CDN). You cannot upload images directly to a third-party storage service (like Amazon S3, DigitalOcean Spaces, etc.) through Cloudinary.

However, you can upload images to Cloudinary, optimize them, and then transfer them to another storage service manually if needed. You would need to handle the following:

Upload the image to Cloudinary. Retrieve the optimized version's URL or download the optimized image. Upload the optimized image to your third-party storage (e.g., DigitalOcean Spaces, S3). Optionally delete the image from Cloudinary after transferring it. If you're specifically looking for storage solutions where you control where the files are stored, services like ImageKit allow you to connect to third-party storage, but Cloudinary primarily manages its own storage.

Sinamon-maker commented 2 months ago

With images compressed to 400 KB:

You can store up to 62,500 images in 25 GB of storage. You can process (upload and transform) up to 25,000 images per month. You can serve (download or view) up to 62,500 images per month if each image is viewed once. Cloudinary

Sinamon-maker commented 2 months ago
  1. Third-Party Storage Integration (Custom Storage) ImageKit allows you to integrate external storage services such as Amazon S3, DigitalOcean Spaces, or Google Cloud Storage. You can store your original images in the third-party storage, and ImageKit will optimize and transform them on-the-fly when delivering the images.
  2. Optimized Delivery, Not Upload ImageKit doesn’t handle the actual upload of images to third-party storage. Instead, you upload your images directly to your external storage (e.g., via your own system or API). Once the images are uploaded to the third-party storage, ImageKit can then access, optimize, and serve them using its CDN and image transformation features.
  3. Process: You upload your images to your third-party storage (like DigitalOcean Spaces). You configure ImageKit to pull the images from that storage. When a user requests an image, ImageKit optimizes it (resizing, compressing, format conversion) and delivers it via their CDN, but the original image remains in your external storage. Summary: ImageKit can deliver optimized images from third-party storage but does not handle the upload to that storage. It acts as a CDN layer that provides image transformations and optimizations for images stored elsewhere.
i-salimzhanov commented 1 month ago

кстати как вариант можно потыкать вот это из плюсов - не стоит ничего из минусов нет внятной документации и гарантий предсказуемой работы.

Sinamon-maker commented 1 month ago

https://developers.cloudflare.com/images/pricing/

i-salimzhanov commented 1 month ago

developers.cloudflare.com/images/pricing

Это пока что лучшее предложение как по функционалу так и по цене.