How to resize uploaded images to custom sizes

so here is maybe a more exact description of what i tried so far:

using strapi 3.3.4

  • created a file plugins.js in myproject/config with the following content:

module.exports = {
upload: {
breakpoints: {
xlarge: 2560,
large: 1600,
medium: 1024,
small: 512,
xsmall: 128
}
}
}

using strapi 3.5.4 on node

  • created a file plugins.js in myproject/extensions/upload/config with the same content as on the other try.

rebuild in between, reuploaded the images, of course.