tomkrej
1
Over week I removed use PLUS asi on over 20k images. But lot of images are incorrectly centered in screen.
Examples of output.
I use this settings:
‘background.color’ => ‘transparent’,
‘background.scaling’ => ‘fill’,
‘outputSize’ => ‘1920x1920’,
‘paddingTop’ => ‘7%’,
‘paddingBottom’ => ‘7%’,
‘paddingLeft’ => ‘7%’,
‘paddingRight’ => ‘7%’,
How can I fix it. It looks as problem on Photoroom side. Output images missing padding from sides and are not centered in screen.
Vincent
3
Hi,
This is happening because by default the API doesn’t apply the padding for cropped edges.
And since in your input image the item is very close to some edges of the image, they then get counted as cropped edges.
You can disable this behavior by setting the parameter ignorePaddingAndSnapOnCroppedSides=false.
You can find more details about the positioning logic on this documentation page: Positioning | Photoroom API Documentation
Let me know if this managed to fix your issue.
Best,
Vincent