Image Resize / Maximum area gives unexpected size

Hey!

I’m trying to resize an image to fit in a 1275x672 box, using the Image Resize / Maximum area operation:

My input image is 1280x720px. The output of the operation is 1234x694px, while I’d expect 1194x672:

Do I misinterpret the functionality of this operation (“Specified values are maximum area”), or is this a bug?

Also, if I only set the height and leave the width blank, this operation just returns the original image.

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @bartv, I think you’re right, this does look like a bug to me. I’ll add this to our bug tracker for a closer look and fix.

1 Like