Hello PhotoRoom Team,
I’m seeing reduced quality in images returned by your API, even when using the following payload:
("imageFile", (img_filename, img_bytes, img_content_type or "image/*")),
("outputSize", ("", output_size)),
("referenceBox", ("", "originalImage")),
("ignorePaddingAndSnapOnCroppedSides", ("", "false")),
("horizontalAlignment", ("", "center")),
("verticalAlignment", ("", "center")),
("scaling", ("", scaling_value))
outputSize matches the original dimensions, but images appear slightly compressed or downscaled.
Could you advise how to preserve original quality while using background removal and other effects?
Thank you,
Hi @yaseen1122
Thanks for your message. By default, we preserve the original dimensions of the input image - here’s some documentation on the output size parameter.
If you want to send over your original images, I can try to recreate your call & troubleshoot further.
Hi Support, Thanks for responding. In my case, the original image quality compromised after processing. It would be great if you could try as well
Hi @yaseen1122 I can definitely recreate and process the image if you send me your original image
Hey @yaseen1122 ,
I recreated using your parameters, but adjusted:
(“outputSize”, (“”, auto)) → auto is our default value for this paramter and the behavior is as follows:
auto (default)
-
if templateId is set, keeps the size of the template
-
if templateId isn’t set, behaves like originalImage
&
“scaling”, (“”, fit)) → this parameter directs the subject of the image to resize to fit the target area in the output image
If you prefer for the subject to fill as much space as possible inside the targetArea, this is possible by setting the argument scaling to fill
Here’s the output image: The output size is preserved from the original image at 2976 × 4464 pixels
Hi Support Team,
Thank you for recreating the image and providing the converted version, as well as the guidance on the improvements. The image quality has improved after enabling the auto setup; however, it is still lower than the original image.
I would like to know if I upload an original image with a resolution of 300 DPI, is there an option to receive the converted/processed image in 300 DPI as well? Currently, the processed image is returned at 25 DPI.
I appreciate your clarification on this.
Hi,
Most Photoroom exports are saved at 72 DPI. Unfortunately, you cannot change the DPI in your output image at this time To get more detailed, sharper images in Photoroom, you can increase the image resolution (see Resize your designs in Photoroom).
Hi Support Team,
Thanks for responding. One request i have now is, could you please delete the processed image that you have shared in response. I have an copy write concerns from my customers. Since we have already addressed the issue, the name should be there but image itself needs to be hide or delete .
Hi @yaseen1122 ,
That makes sense - I see you deleted your post containing the input image so we should be all set.