10 сервисов оптимизации изображений онлайн

Уменьшаем размер изображения в Photoshop

Этот мощнейший редактор можно использовать для описываемых задач. Но это как перевозить пакет с продуктами не в легковом автомобиле, а вызывать «Камаз». Photoshop — избыточно мощное приложение для такой простой цели, как уменьшить вес фотографии.

На открытие этой программы и сохранение в нём файла уйдёт значительно больше времени, чем на само сжатие. Тем не менее, чтобы наша инструкция была полной, опишем и то, как сжать картинку в Фотошопе.

Открыв файл в редакторе Photoshop, следует выбрать раздел «Изображение», в нём кликнуть на пункт «Размер изображения». Как показано на картинке ниже.

Откроется диалоговое окно, где можно вручную задать высоту и ширину рисунка. Кнопка ОК – сохраняем файл. Этот же диалог вызывается горячими клавишами «Ctrl+Alt+I», быстрое сохранение результата, сочетание клавиш– «Ctrl+S».

Второй способ уменьшить размер файла картинки или фото, это применить качество при сохранении. То которое посчитаете подходящим для Вас. Давайте я покажу на примере как это сделать.

Открываете photoshop, далее кликаете на меню «Файл» выбираете Сохранить для Web…» или используете сочетание клавиш «Alt+Shift+Ctrl+S», как Вам будет удобно.

Выбираете сверху — 4 варианта. Смотрите на изменения качества при компрессии, Вы можете двигать изображения, предварительно его просматривая.

Обратите внимание, Слева с верху — Исходник, далее идут уже с сжатием. Перёд сохранением можно также выставить размер изображения

Которое нужно Вам. И нажать сохранить, выбрать путь для записи и все готово

Перёд сохранением можно также выставить размер изображения. Которое нужно Вам. И нажать сохранить, выбрать путь для записи и все готово.

PNGOptimizer 2.4.2

Платформа: Windows

Учитывая размер (146 КБ), PNGOptimizer является самой миниатюрной программой из всех представленных, поэтому неудивительно, что ее интерфейс настолько примитивен. Она ориентирована на работу с PNG-файлами.

Но набор опций компрессии впечатляет. PNGOptimizer способен убирать чересстрочность, заменять фоновый цвет, а также убирать текст и многое другое.

Кроме этого данная программа способна импортировать GIF, BMP или TGA-файлы, и сохранять их в формате PNG в соответствии с указанными параметрами.

При этом PNGOptimizer однозначно уступает своим конкурентам по эффективности, так как нам удалось сжать высококачественные PNG-картинки всего лишь на 3,6%.

С веб-графикой дела обстоят гораздо лучше, и нам удалось получить почти 40% сжатия. Если вам нужно небольшое и простенькое решение для работы с PNG, то PNGOptimizer – это вариант!

Preserving metadata

You can request that specific metadata is copied from the uploaded image
to the compressed version. Preserving information, the GPS
and the date are currently supported. Preserving
metadata adds to the compressed file size, so you should only preserve
metadata that is important to keep.

Preserving metadata will not count as an extra compression. However, in
the background the image will be created again with the additional
metadata.

To preserve specific metadata, call the method on an image
source:

You can provide the following options to preserve specific metadata. No
metadata will be added if the requested metadata is not present in the
uploaded image.

Preserves any copyright information. This includes the EXIF copyright
tag (JPEG), the XMP rights tag (PNG) as well as a Photoshop copyright
flag or URL. Uses up to 90 additional bytes, plus the length of the
copyright data.
Preserves any creation date or time. This is the moment the image or
photo was originally created. This includes the EXIF original date time
tag (JPEG) or the XMP creation time (PNG). Uses around 70 additional bytes.
(JPEG only)
Preserves any GPS location data that describes where the image or photo
was taken. This includes the EXIF GPS latitude and GPS longitude tags
(JPEG). Uses around 130 additional bytes.

Saving to Google Cloud Storage

Before you can store an image in GCS you will need to generate an access
token with a service account.

Example GCS request

You can store a compressed image to GCS by using the URL that was
returned in the header. A JSON body with the bucket
information and a header have to be
included in the request that instructs the file to be stored on GCS.

For example, to save the compressed image to a file named
in a bucked named :

Request options

You need to provide the following options in order to save an image on
Google Cloud Storage:

Specify to store to Google Cloud Storage.
The access token for authenticating to Google’s Cloud Platform. Find out
how to generate these tokens with the example above.
The path at which you want to store the image including the bucket
name. The path must be supplied in the following format:
.

The following settings are optional:

(experimental)
You can add a header to control browser caching of the
stored image, with for example: . The full list
of directives can be found in the MDN
web docs.

Saving to Google Cloud Storage

Before you can store an image in GCS you will need to generate an access
token with a service account.

We still need to create a piece of example code for this language
that generates an access code. In case you have a working example
ready, please share your code!

Once you have generated the access token you can then save the optimised
image directly to GCS by calling the method on an image source:

You need to provide the following options in order to save an image on
Google Cloud Storage:

Specify to store to Google Cloud Storage.
The access token for authenticating to Google’s Cloud Platform. Find out
how to generate these tokens with the example above.
The path at which you want to store the image including the bucket
name. The path must be supplied in the following format:
.

The following settings are optional:

(experimental)
You can add a header to control browser caching of the
stored image, with for example: . The full list
of directives can be found in the MDN
web docs.

Content management

  • An extension to compress images in bulk on Airtable. Supports scheduling and webhooks.

  • A Bolt Extension to optimize your images located in your files directory. The extension also supports resizing images to a specific size.

  • Image Optimizer incorporates various compression tools and optimizes your images. This will lead to smaller images and ultimately makes your website faster.

  • A Contao CMS extension that speeds up your website by automatically optimising your JPEG and PNG image uploads with TinyPNG/TinyJPG.

  • Tiny Image is a Craft CMS plugin which provides a clean and easy to use interface for users to compress their images using the TinyPNG API.

  • This blog shares some code that shows how it’s possible to optimise image size on upload using the TingPNG.com API and the awesome ImageResizer plugin for Episerver.

  • Installable extension for ExpressionEngine CMS. Original images will be stored in a separate folder.

  • Compress PNG and JPG images on your website so they will use less bandwidth and load faster. The compression module uses the free API of TinyPNG and TinyJPG.

  • Free Joomla! plugin, which allows you to compress and resize images uploaded with the media manager and JCE automatically.

  • The blog article contains all the details of automatic image optimization in Kentico CMS using TinyPNG API.

  • This Drupal 7 and 8 module allows compression of images when they are uploaded and gives the opportunity to compress individual image styles.

  • Adds image compression to your ProcessWire CMS. The client allows manual and automatic image compression using the TinyPNG and TinyJPG API.

  • Image optimization for the popular SilverStripe framework and CMS. This module extends the Image class and integrates with the TinyPNG API.

  • Tinifier is a free Umbraco package and among the top 50 packages. It reduces the size of your JPEG and PNG images, supports Azure and speeds up page loading.

  • Compress JPG and PNG images in your store to reduce page size, make your store faster and save a lot of disk space. You can setup CRON Job to automatically compress images.

Resizing images

Use the API to create resized versions of your uploaded images. By letting
the API handle resizing you avoid having to write such code yourself and
you will only have to upload your image once. The resized images will be
optimally compressed with a nice and crisp appearance.

You can also take advantage of intelligent cropping to create thumbnails
that focus on the most visually important areas of your image.

Resizing counts as one additional compression. For example, if you upload
a single image and retrieve the optimized version plus 2 resized versions
this will count as 3 compressions in total.

To resize an image, call the method on an image source:

The describes the way your image will be resized. The following
methods are available:

Scales the image down proportionally. You must provide either a target
or a target , but not both. The scaled image will have
exactly the provided width or height.

Scales the image down proportionally so that it fits within the given
dimensions. You must provide both a and a . The scaled
image will not exceed either of these dimensions.

Scales the image proportionally and crops it if necessary so that
the result has exactly the given dimensions. You must provide both a
and a . Which parts of the image are cropped away is
determined automatically. An intelligent algorithm determines the
most important areas of your image.

A more advanced implementation of cover that also detects cut out
images with plain backgrounds. The image is scaled down to the
and you provide. If an image is detected with a
free standing object it will add more background space where
necessary or crop the unimportant parts. This feature is new and
we’d love to hear your feedback!

If the target dimensions are larger than the original dimensions, the image
will not be scaled up. Scaling up is prevented in order to protect the
quality of your images.

jStrip 3.3

Платформа: Windows

Инструмент для сжатия без потери качества JPEG-файлов, который позволяет удалить всю ненужную информацию: миниатюру, комментарии, цветовой профиль, дополнительные байты в начале и в конце файла и т.д.

Сжатие будет незначительным, так как не происходит перекодирования. Мы поняли это, когда попробовали сжать несколько JPG-изображений в высоком разрешении, и в результате получили файл всего на 1% «легче» оригинала.

Если сжимать маленькие файлы, то результат будет более ощутимым. К примеру, попытавшись уменьшить подготовленный к использованию на веб-странице JPEG-файл мы получили сжатие на уровне 16,1%.

Саму программу сложно назвать идеальной. По умолчанию она заменяет оригинальные файлы сжатыми версиями, так что вам придется работать с копиями.

Preserving metadata

You can request that specific metadata is copied from the uploaded image
to the compressed version. Preserving information, the GPS
and the date are currently supported. Preserving
metadata adds to the compressed file size, so you should only preserve
metadata that is important to keep.

Preserving metadata will not count as an extra compression. However, in
the background the image will be created again with the additional
metadata.

To preserve specific metadata, call the method on an image
source:

You can provide the following options to preserve specific metadata. No
metadata will be added if the requested metadata is not present in the
uploaded image.

Preserves any copyright information. This includes the EXIF copyright
tag (JPEG), the XMP rights tag (PNG) as well as a Photoshop copyright
flag or URL. Uses up to 90 additional bytes, plus the length of the
copyright data.
Preserves any creation date or time. This is the moment the image or
photo was originally created. This includes the EXIF original date time
tag (JPEG) or the XMP creation time (PNG). Uses around 70 additional bytes.
(JPEG only)
Preserves any GPS location data that describes where the image or photo
was taken. This includes the EXIF GPS latitude and GPS longitude tags
(JPEG). Uses around 130 additional bytes.

Resizing images

Use the API to create resized versions of your uploaded images. By letting
the API handle resizing you avoid having to write such code yourself and
you will only have to upload your image once. The resized images will be
optimally compressed with a nice and crisp appearance.

You can also take advantage of intelligent cropping to create thumbnails
that focus on the most visually important areas of your image.

Resizing counts as one additional compression. For example, if you upload
a single image and retrieve the optimized version plus 2 resized versions
this will count as 3 compressions in total.

Example resize request

You can resize an image by using the URL that was returned in the
header after compressing. A JSON request body has to be
provided together with a header.

For example, to save the resized and compressed image to a file named
:

Request options

The describes the way your image will be resized. The following
methods are available:

Scales the image down proportionally. You must provide either a target
or a target , but not both. The scaled image will have
exactly the provided width or height.

Scales the image down proportionally so that it fits within the given
dimensions. You must provide both a and a . The scaled
image will not exceed either of these dimensions.

Scales the image proportionally and crops it if necessary so that
the result has exactly the given dimensions. You must provide both a
and a . Which parts of the image are cropped away is
determined automatically. An intelligent algorithm determines the
most important areas of your image.

A more advanced implementation of cover that also detects cut out
images with plain backgrounds. The image is scaled down to the
and you provide. If an image is detected with a
free standing object it will add more background space where
necessary or crop the unimportant parts. This feature is new and
we’d love to hear your feedback!

If the target dimensions are larger than the original dimensions, the image
will not be scaled up. Scaling up is prevented in order to protect the
quality of your images.

Preserving metadata

You can request that specific metadata is copied from the uploaded image
to the compressed version. Preserving information, the GPS
and the date are currently supported. Preserving
metadata adds to the compressed file size, so you should only preserve
metadata that is important to keep.

Preserving metadata will not count as an extra compression. However, in
the background the image will be created again with the additional
metadata.

To preserve specific metadata, call the method on an image
source:

You can provide the following options to preserve specific metadata. No
metadata will be added if the requested metadata is not present in the
uploaded image.

Preserves any copyright information. This includes the EXIF copyright
tag (JPEG), the XMP rights tag (PNG) as well as a Photoshop copyright
flag or URL. Uses up to 90 additional bytes, plus the length of the
copyright data.
Preserves any creation date or time. This is the moment the image or
photo was originally created. This includes the EXIF original date time
tag (JPEG) or the XMP creation time (PNG). Uses around 70 additional bytes.
(JPEG only)
Preserves any GPS location data that describes where the image or photo
was taken. This includes the EXIF GPS latitude and GPS longitude tags
(JPEG). Uses around 130 additional bytes.

Saving to Amazon S3

To save an image to S3, call the method on an image source:

You need to provide the following options in order to save an image on
Amazon S3:

Specify to store to Amazon S3.
The path at which you want to store the image including the bucket
name. The path must be supplied in the following format:
.

The following settings are optional:

(experimental)
You can add a header to control browser caching of the
stored image, with for example: . The full list
of directives can be found in the MDN
web docs.

The user that corresponds to your AWS access key ID must have the
and permissions on the paths of the objects you
intend to create.

Saving to Google Cloud Storage

Before you can store an image in GCS you will need to generate an access
token with a service account.

We still need to create a piece of example code for this language
that generates an access code. In case you have a working example
ready, please share your code!

Once you have generated the access token you can then save the optimised
image directly to GCS by calling the method on an image source:

You need to provide the following options in order to save an image on
Google Cloud Storage:

Specify to store to Google Cloud Storage.
The access token for authenticating to Google’s Cloud Platform. Find out
how to generate these tokens with the example above.
The path at which you want to store the image including the bucket
name. The path must be supplied in the following format:
.

The following settings are optional:

(experimental)
You can add a header to control browser caching of the
stored image, with for example: . The full list
of directives can be found in the MDN
web docs.

Description

Make your website faster by optimizing your JPEG, PNG, and WebP images. This plugin automatically optimizes all your images by integrating with the popular image compression services TinyJPG and TinyPNG.

Features

  • Automatically optimize new images on upload.
  • Advanced background optimization to speed up your workflow.
  • Optimize individual images already in your media library.
  • Easy bulk optimization of your existing media library.
  • Automatically resize huge image uploads by setting a maximum width and/or height for more reasonable browser display.
  • Display JPEG images more quickly with progressive JPEG encoding.
  • Chose to preserve copyright metadata, creation date and GPS location in your original images.
  • Supports compression of animated PNG.
  • Select which thumbnail sizes of an image may be optimized.
  • Multisite support with a single API key.
  • WPML compatible.
  • WooCommerce compatible (see below).
  • WP Retina 2x compatible.
  • See your usage on the settings page and during bulk optimization.
  • Color profiles are automatically translated to standard RGB color.
  • Convert CMYK to RGB to save more space and add compatibility.
  • Dashboard widget with your total savings.
  • Optimize and resize uploads with the WordPress mobile app.
  • No file size limits.

How does it work?

After you upload an image to your WordPress site, each resized image is uploaded to the TinyJPG or TinyPNG service. Your image is analyzed to apply the best possible optimization. Based on the content of your image an optimal strategy is chosen. The result is sent back to your WordPress site and will replace the original image with one smaller in size. On average JPEG images are compressed by 40-60% and PNG images by 50-80% without visible loss in quality. Your website will load faster for your visitors, and you’ll save storage space and bandwidth!

Getting started

Install this plugin and follow the instructions to set up your account. With a regular WordPress installation you can optimize roughly 100 images each month for free. The exact total depends on the number of thumbnail sizes that are in use in your WordPress installation. You can change which of the generated thumbnail sizes should be optimized on the Settings > TinyPNG – JPEG, PNG & WebP image compression page. Once installed you can also switch to a paid account which removes the limits and allows you to optimize as many images as you like.

Optimizing all your images

You can bulk optimize your existing JPEG, PNG, and WebP images all at once by going to Media > Bulk Optimization. Clicking on the big button will start optimizing all unoptimized images in your media library.

Multisite support

The plugin is fully multisite compatible and you can set the API key for all sites by defining the key in your wp-config.php file. View the installation instructions for more information.

WooCommerce compatibility

This plugin is fully compatible with WooCommerce. However, we have discovered that WooCommerce may be trying to regenerate image attachment metadata over and over again on each page visit. If you are using WooCommerce please follow the tips from the support section. This may make your WooCommerce shop even faster than it was before.

Как уменьшить фото без потери качества

Сжать фото можно при помощи сторонних приложений. Рассмотрим несколько популярных программ.

Adobe Photoshop

Чтобы сжать фото, нужно открыть его в окне программы…

В верхней меню выбрать Image (Изображение) -> Image Size (Размер изображения).

В следующем окне отобразятся текущие размеры картинки:

Чтобы сжать фото, необходимо в поле width выставить нужный размер в пикселях, поставить галочку «Соблюдались пропорции» (Constraip Proportions) и сохранить изменения.

FastStone Image Viewer

Сжать фото можно через программу для просмотра фотографий FastStone Image Viewer. Русифицированное приложение работает быстро. Оно принимает изображения со сканера и в пакетном режиме обрабатывает фотографии: переименовывает, преобразует файлы, удаляет мета данные, изменят размер. Чтобы уменьшить фото, необходимо в меню «Правка» выбрать команду «Изменить размер».

ACDSee

При запуске ACDSee все снимки будут представлены в виде каталога:

Вверху расположено меню, с помощью которого можете менять режимы просмотра, запускать инструменты, производить действия с файлами. Под ним — пиктограммы кнопок перемещения между папками, вызова режимов обработки. По нажатию на кнопку «Изменить размер» появится окно, в котором нужно указать желаемые параметры снимка.

XnView

Размеры изображения в пикселях отображаются внизу окна XnView.

Чтобы сжать фото, необходимо выбрать пункт «Изображение» (Изменение размера). Или нажать комбинацию Ctrl+S.

В следующем окне следует отметить пункт «Изменять разрешение» и задать новые размеры в пикселях или в процентах. Также можно поэкспериментировать с алгоритмом интерполяции.

Если не стоит галочка «Сохранять пропорции», то произвольное выставление значений приведет к тому, что снимок станет вытянутым.

Resizing images

Use the API to create resized versions of your uploaded images. By letting
the API handle resizing you avoid having to write such code yourself and
you will only have to upload your image once. The resized images will be
optimally compressed with a nice and crisp appearance.

You can also take advantage of intelligent cropping to create thumbnails
that focus on the most visually important areas of your image.

Resizing counts as one additional compression. For example, if you upload
a single image and retrieve the optimized version plus 2 resized versions
this will count as 3 compressions in total.

To resize an image, call the method on an image source:

The describes the way your image will be resized. The following
methods are available:

Scales the image down proportionally. You must provide either a target
or a target , but not both. The scaled image will have
exactly the provided width or height.

Scales the image down proportionally so that it fits within the given
dimensions. You must provide both a and a . The scaled
image will not exceed either of these dimensions.

Scales the image proportionally and crops it if necessary so that
the result has exactly the given dimensions. You must provide both a
and a . Which parts of the image are cropped away is
determined automatically. An intelligent algorithm determines the
most important areas of your image.

A more advanced implementation of cover that also detects cut out
images with plain backgrounds. The image is scaled down to the
and you provide. If an image is detected with a
free standing object it will add more background space where
necessary or crop the unimportant parts. This feature is new and
we’d love to hear your feedback!

If the target dimensions are larger than the original dimensions, the image
will not be scaled up. Scaling up is prevented in order to protect the
quality of your images.

Онлайн сервисы

В сети есть бесплатные сайты, при помощи которых можно уменьшить размер фото. Для этого потребуется лишь браузер и доступ в Интернет. Пользоваться онлайн сервисами можно как на компьютере, так и на телефоне.

Все действия я буду показывать в браузере Google Chrome. Но вы можете использоваться любую другую программу.

IMGonline

1. Нажмите на кнопку «Выберите файл» и укажите картинку, которую нужно сжать.

2. Настройте «Параметры сжатия»:

  • В части «Уменьшение размера в мегапикселях» нажмите на поле «уменьшение отключено» и выберите подходящий вариант из списка. Для наименьшей потери в качестве рекомендуется установить от 10 до 30%.
  • Пункт «Субвыборка» позволит усреднить цветовые переходы. Тут можно оставить значение по умолчанию: «2х1 (среднее качество)».
  • Если планируете загружать фотку в интернет, оставьте переключатель на «Прогрессивный JPEG». Это сожмет ее еще на 2-3%.
  • Через пункт «Копировать EXIF и другие метаданные» можно как убрать, так и оставить дополнительную информацию (модель камеры, дату съемки и др.). Эти данные не сильно влияют на размер.
  • Пункт «Качество» — это основной параметр, отвечающий за конечный объем файла. Обычно значение 70-80 значительно снижаем вес, но не сильно повлиять на качество.

Готовый снимок сохранится в папку «Загрузки».

iLoveIMG

1. Щелкните по кнопке «Выбрать изображение» и добавьте фото.

2. Кликните по «Сжать изображение».

3. Сервис покажет результат. Щелкните по кнопке «Скачать сжатые изображения» для сохранения.

Compress JPEG

  1. Нажмите на «Загрузить» и добавьте картинку.
  2. Фотография загрузится, и сервис её автоматически сожмёт.
  3. Щелкните по «Скачать все» для сохранения результата.

Photo Resizer

1. Нажмите на иконку папки и загрузите изображение.

2. Фотография отобразится в полном размере. Двигая ползунок «Ширина в пикселях» или «Высота в пикселях» измените размер. Затем щелкните по кнопке «Создать».

3. Нажмите «Скачать» и измененный снимок загрузится на компьютер.

Resizenow

Нажмите кнопку «Выбор изображений» и загрузите картинку. Если нажать на поле «Простой» и указать «Продвинутый», откроется дополнительная панель настройки качества. После выбора размера и качества кликните по «Изменить размер».

Сервис применит настройки и после нажатия на готовую ссылку загрузит файл на ПК.

TinyJPG

TinyJPG – это популярный англоязычный сервис для сжатия изображений в формате JPG и PNG. У него есть ограничение: файл должен весить не более 5 МБ. За раз сайт может обработать до 20 снимков.

Просто перетащите файлы в окошко и сервис автоматически обработает снимки. Для скачивания результата нажмите download или download all.

Error handling

The Tinify API uses HTTP status codes to indicate success or failure. Any
HTTP errors are converted into exceptions, which are thrown by the client
library.

There are four distinct types of errors. The exception message will contain
a more detailed description of the error condition.

There was a problem with your API key or with your API account. Your
request could not be authorized. If your compression limit is reached,
you can wait until the next calendar month or upgrade your subscription. After verifying your
API key and your account status, you can retry the request.
The request could not be completed because of a problem with the
submitted data. The exception message will contain more information.
You should not retry the request.
The request could not be completed because of a temporary problem with
the Tinify API. It is safe to retry the request after a few minutes.
If you see this error repeatedly for a longer period of time, please
contact us.
The request could not be sent because there was an issue connecting to
the Tinify API. You should verify your network connection. It is safe to
retry the request.

You can handle each type of error separately:

If you are writing code that uses an API key configured by your users, you
may want to validate the API key before attempting to compress images.
The validation makes a dummy request to check the network connection and
verify the API key. An error is thrown if the dummy request fails.

Saving to Amazon S3

To save an image to S3, call the method on an image source:

You need to provide the following options in order to save an image on
Amazon S3:

Specify to store to Amazon S3.
The path at which you want to store the image including the bucket
name. The path must be supplied in the following format:
.

The following settings are optional:

(experimental)
You can add a header to control browser caching of the
stored image, with for example: . The full list
of directives can be found in the MDN
web docs.

The user that corresponds to your AWS access key ID must have the
and permissions on the paths of the objects you
intend to create.

ScriptJPG

Платформа: Windows

Один из самых примитивных инструментов, представленных в этой статье. Он представляет собой скрипт, который выступает в качестве интерфейса для нескольких инструментов командной строки. Перетащите JPG файлы в открытое окно скрипта, укажите опции компрессии, и ScriptJPG сделает все остальное.

Инструмент, несмотря на обещания в рекламе и пресс-релизе, не работает с веб-графикой JPG. Мы так и не поняли, в чем причина, так как строение ScriptJPG настолько просто, что даже нельзя увидеть сообщения об ошибках.

Нам все же удалось использовать набор JPG-фотографий для тестирования, и результат получился приемлемым. Нам удалось сжать каждую фотографию на 10%.

Если же вы относитесь к простым пользователям ПК, то мы рекомендуем применять что-нибудь с графическим интерфейсом.

Saving to Google Cloud Storage

Before you can store an image in GCS you will need to generate an access
token with a service account.

We still need to create a piece of example code for this language
that generates an access code. In case you have a working example
ready, please share your code!

Once you have generated the access token you can then save the optimised
image directly to GCS by calling the method on an image source:

You need to provide the following options in order to save an image on
Google Cloud Storage:

Specify to store to Google Cloud Storage.
The access token for authenticating to Google’s Cloud Platform. Find out
how to generate these tokens with the example above.
The path at which you want to store the image including the bucket
name. The path must be supplied in the following format:
.

The following settings are optional:

(experimental)
You can add a header to control browser caching of the
stored image, with for example: . The full list
of directives can be found in the MDN
web docs.
Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector