Forum Bugs

Transparent images getting black

nawab.khan
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<img style=" width: 100%; height: 100%;"
src="https://rappaportco.qa.propertycapsule.com/property/output/image/flyer_service/format:png/width:1590/height:1140/key:4d8811ef07806004d756b73ad7a11797/crop:1?url=s3%3A%2F%2Fpropertycapsule-flyer-service-qa-private-20200327%2Fpce-files%2Fflyer%3A%3A1044_property%3A%3Ad508ce3194600aa300c672d34d00a802-54766ae369d4a564e4270efac71e81b1_attribute%3A%3A10553_photo%3A%3A1192_filename%3A%3A1192.png"/>
</body>
</html>



When i am trying to convert this html to pdf i m getting black image, Please let me know what to do.

Prince - 13.5
OS - Mac Big sur
  1. test_pdf.pdf2.5 kB
    black image
mikeday
It appears that the server is returning a broken PNG file.
nawab.khan
Thanks for quick response.

Oh, i thought that is transparent image, basically when i remove crop it works, its server implementation to crop part of it, and it is sending somehow this image. How you came to know this is broken image, that would be great. i can pass information to Admin team.

Thank you.
mikeday
I retrieve the image and look at it, it appears to be processed by a tool treating it as text and doing newline conversion or some other process on it.
nawab.khan
Hi Mike,

We just had contact with admin, and they were saying that image was okay they have checked with online validator. What can we do for this to get that image appear?

what validator princexml is using in background?
mikeday
The PNG is fine when the crop is removed as you noted, but the crop script appears to be inserting carriage return characters or similar that break the image, even in the browser, so I would suggest checking how the crop is being applied.
nawab.khan
Yeah, that is correct but can we do anything with prince to accept that image?
mikeday
No, it's broken, so it is not actually an image.
nawab.khan
Ok thanks, will look.