ag-psd icon indicating copy to clipboard operation
ag-psd copied to clipboard

PSD output appears to be pixelated

Open aashishnandakumar-rocketium opened this issue 9 months ago • 3 comments

Attaching the image below showcasing the level of pixelation happening:

Image

This is the original:

Image

(Ignore the font family and size) Both of them have dimension: 840x300 (pixels)

Why is this happening? Also can we set DPI while writing PSD??

Can you show me the code? I don't know if you're reading or writing the file, what are you using to view the result?

Agamnentzar avatar Mar 27 '25 16:03 Agamnentzar

code:

const sizePsd: Psd = {
              width: size.width,
              height: size.height,
              channels: 3,
              bitsPerChannel: 8,
              children: [],
              name: dimension,
              canvas: thumbnailRaw,
            };

iam writing the file, here i will create individual layers and push it into children property and the resulting written file, iam opening in photoshop...

There's nothing in the writing that does any rescaling of your canvases so it has to do something with the way you set the canvases

Agamnentzar avatar Apr 03 '25 14:04 Agamnentzar