Open Bug 1463690 Opened Last year Updated 6 months ago

firefox headless browser providing screenshot in png format only, even for other formats like jpg and bmp also.

Categories

(Firefox :: Headless, enhancement, P3)

enhancement

Tracking

()

UNCONFIRMED
Tracking Status
firefox60 --- affected

People

(Reporter: gbala2412, Unassigned)

Details

Attachments

(2 files)

Attached image test.jpg
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

Steps to reproduce:

Mozilla Firefox version ---- 60.0.1
issued command ----  firefox -headless -screenshot test.jpg sample.htm 


Actual results:

generated an image test.jpg but the format was png


Expected results:

generate an image test.jpg but the format should be jpg/jpeg
Based on other similar reports I think the correct component would be Firefox:Headless. Please change if this is not the right component.
Component: Untriaged → Headless
I can confirm Firefox 62.0.3 always saves screenshots in PNG format regardless what file extensions was provided.

Documentation at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode states headless Firefox supports "other web-compatible image formats such as .jpg, .bmp, etc."
Can I work on this bug?
Type: defect → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.