Giter Site home page Giter Site logo

yegorshtonda / strapi-provider-upload-aws-s3-resizing-and-optimisation Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 8.0 122 KB

Strapi file upload to AWS S3, with resizing and optimisation images, generation webp images

License: MIT License

JavaScript 100.00%

strapi-provider-upload-aws-s3-resizing-and-optimisation's People

Contributors

blaineo avatar delmendo avatar dependabot[bot] avatar mangosango avatar posty72 avatar rondoe avatar scotteadams avatar yegorshtonda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

strapi-provider-upload-aws-s3-resizing-and-optimisation's Issues

Error on upload

Hi, When I try to upload using your plugin through Strapi, I get the following error ->

Screenshot 2021-04-24 at 11 11 04

Here's a screenshot of the error in chrome running on localhost ->

Screenshot 2021-04-24 at 11 12 40

I'm using the standard plugin example you have provided on npm/git in my plugin.js file.

I have successfully uploaded files using a different plugin (strapi-provider-upload-aws-s3) to AWS S3. I'm using Strapi v3.6.0.

Can't upgrade Strapi because of a sharp error

Hi there!

I'm not able to bump my Strapi from 3.5.4 to 3.6.3

I get this error:

(sharp:468549): GLib-GObject-WARNING **: 12:51:17.371: cannot register existing type 'gchar'
**
GLib-GObject:ERROR:../gobject/gvaluetypes.c:454:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)
Bail out! GLib-GObject:ERROR:../gobject/gvaluetypes.c:454:_g_value_types_init: assertion failed: (type == G_TYPE_CHAR)

Is there a way to run the update without breaking anything?

How to limit the number of resize and optimization?

The plugin seems to create too many files in S3 by default. Example the following files were created in all large/medium/small/origin folders in S3.

The same "large" file was uploaded to all the 4 directories, large/medium/small/origin.

[2021-04-05T13:43:17.507Z] info ๏ฟฝ๐Ÿ”„ Generated images/large/companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:17.569Z] info ๏ฟฝ๐Ÿ”„ Generated images/medium/companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:17.618Z] info ๏ฟฝ๐Ÿ”„ Generated images/small/companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:17.916Z] info ๏ฟฝ๐Ÿ”„ Generated images/large/large_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:17.988Z] info ๏ฟฝ๐Ÿ”„ Generated images/medium/large_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:18.020Z] info โœ… Uploaded images/thumbnail/thumbnail_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.039Z] info ๏ฟฝ๐Ÿ”„ Generated images/small/large_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:18.060Z] info โœ… Uploaded images/small/companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.162Z] info โœ… Uploaded images/origin/companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.164Z] info โœ… Uploaded images/medium/companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.194Z] info โœ… Uploaded images/large/companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.263Z] info ๏ฟฝ๐Ÿ”„ Generated images/large/medium_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:18.285Z] info โœ… Uploaded images/small/large_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.288Z] info โœ… Uploaded images/medium/large_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.343Z] info ๏ฟฝ๐Ÿ”„ Generated images/medium/medium_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:18.356Z] info โœ… Uploaded images/large/large_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.387Z] info โœ… Uploaded images/origin/large_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.389Z] info ๏ฟฝ๐Ÿ”„ Generated images/small/medium_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.jpg
[2021-04-05T13:43:18.547Z] info ๏ฟฝ๐Ÿ”„ Generated images/large/small_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:18.551Z] info โœ… Uploaded images/small/medium_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.576Z] info โœ… Uploaded images/origin/medium_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.613Z] info โœ… Uploaded images/medium/medium_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg
[2021-04-05T13:43:18.614Z] info ๏ฟฝ๐Ÿ”„ Generated images/medium/small_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.jpg
[2021-04-05T13:43:18.648Z] info ๏ฟฝ๐Ÿ”„ Generated images/small/small_companya632bc65-0104-4253-914b-1f9efef05dcf.jpg.j
[2021-04-05T13:43:18.687Z] info โœ… Uploaded images/large/medium_companya632bc65_0104_4253_914b_1f9efef05dcf_cee43db9ed.jpg

Image is not showing

I uploaded images, It generated the webp but the images are not showing. Do you have any idea to fix it

Screenshot 2023-05-24 at 11 57 18 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.