gatsby-uc / gatsby-source-strapi

Gatsby source plugin for building websites using Strapi as a data source
MIT License
354 stars 182 forks source link

Add configuration option to skip image processing #320

Closed tylerpaige closed 2 years ago

tylerpaige commented 2 years ago

In some cases, developers may want to skip image processing entirely. This may be useful for a site that is using an image CDN such as cloudinary: the CDN provides transformations, so we don't need to use Gatsby's transformation layer. This PR adds such an option.

Relevant issues: #305

strapi-cla commented 2 years ago

CLA assistant check
All committers have signed the CLA.

raae commented 2 years ago

I would suggest using the term "skipFileDownloads" as the image processing is being done by other plugins on all file nodes. So it's not really skipping image processing, its skipping creating File Nodes for the images.

"skipFileDownloads" is lifted from the Drupal Plugin, the WP Plugin uses "createFileNodes".

tylerpaige commented 2 years ago

@raae that's a great point. just submitted that change!

tylerpaige commented 2 years ago

Hi friends, Is there anything I can do to move this PR forward? I'm definitely interested in saving myself the build time & bandwidth costs caused by downloading these images.

Thanks!