nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
360 stars 23 forks source link

satoriOptions width and height crop the image instead of reducing resolution #215

Open mahmoudyusof opened 1 week ago

mahmoudyusof commented 1 week ago

using satoriOptions as follows

  ogImage: {
    satoriOptions: {
      width: 600,
      height: 315,
    },
  },

results in the attached image image

instead of reducing the resolution, it just cropped the image.

The component on which the image is based doesn't use fixed pixel width and height, instead it uses tailwind's h-full and w-full classes, but should this affect the output?