nicolashmln / strapi-plugin-responsive-image

Custom responsive image formats for https://strapi.io
154 stars 28 forks source link

Plugin not replacing the upload plugin #33

Closed Dirvann closed 1 year ago

Dirvann commented 1 year ago

strapi-version: 4.10.7, but also tested with 4.10.5 lang: typescript

export default (plugin) => { plugin.services["image-manipulation"] = imageManipulation();

return plugin; };



- I ran `npm run build` and started the server
- I changed a few options like the name of the formats and output format in the settings of the plugin
- When uploading a new file only the standard (small, medium, large, thumbnail) sizes from the upload plugin are present. 

I also tried with the js version in strapi-server.js but also not having an effect

## Expected behavior
- the files are in the format set in responsive image plugin
svenruegg commented 1 year ago

should be a .ts file when using typescript, no?

Dirvann commented 1 year ago

@svenruegg Thanks for the reply.

The upload plugin actually has a js file, in the readme it also sais to just use a js file for typescript. But I also tried with .ts but that also did not have any effect.

svenruegg commented 1 year ago

Hi @Dirvann

Ok, that's a pity. I am using the ts version as well and your script looks like mine. I am using Strapi 4.11.0 though where it works but don't think that thats the problem.

Have you tried to delete the node modules folder and the package.lock.json and run npm i again?

Dirvann commented 1 year ago

Oh good to hear that it works, i will try again with version 4.10.8 ( because for some reason there is an issue when I upgrade to 4.11).

I'll just remove all node_modules and reinstall

Dirvann commented 1 year ago

@svenruegg Thanks! It worked

I upgraded to 4.11.0.

So a good refresh was needed

Thanks for the help!

Dirvann commented 1 year ago

Created PR with the clarification in the documentation #36