'Export image' in builder with jpg is exporting a png
See original GitHub issueContext
I’ve noticed this while working in https://github.com/CartoDB/cartodb/issues/13865. No matter what format {.png, .jpg} you choose, the same endpoint is called (.png) so you are always getting an image with that format.
Steps to Reproduce
- Create a map in builder
- Export as image using
.jpg
- Check the image format (http://checkfiletype.com/).
Current Result
The endpoint called is /api/v1/map/static/center/{token}/{z}/{lat}/{lng}/{width}/{height}.png
so the exported is a png
.
Expected result
The endpoint called is /api/v1/map/static/center/{token}/{z}/{lat}/{lng}/{width}/{height}.jpg
to get a true jpg
image.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to export my work as an image (PNG / JPG)?
1. First of all, you can click on the blue button for “Export” on the right-hand corner of the page. 2. A list...
Read more >Save as JPG or PNG - How to Export Bitmaps from Illustrator
Illustrator - Save as JPG or PNG - How to Export Bitmaps from IllustratorLearn how to export or save an image from Illustrator...
Read more >How Do I Export an Image From Figma Design?
Simply open the File menu and select Export > Image. In the Export Image dialog box, choose the desired format (PNG, JPG, or...
Read more >How to export artwork in Illustrator - Adobe Support
png and .jpg, can be exported in the background. The .svg and .pdf file formats follow the standard export process. If you select...
Read more >Exporting small size images (JPG and PNG) without ... - Reddit
The Export As... function in Photoshop can do 8-bit PNG with full transparency though, so use that if possible. You can use additional...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The thing is that the mime type for JPG images is
image/jpeg
instead ofimage/jpg
, that’s why we’re exporting it in a bad format. 😃I will fix it right away 😃
Deployed! 🚀