question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Export image' in builder with jpg is exporting a png

See original GitHub issue

Context

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

  1. Create a map in builder
  2. Export as image using .jpg image
  3. 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.

cc/ @CartoDB/rt-managers

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jesusbotellacommented, Jun 13, 2018

The thing is that the mime type for JPG images is image/jpeg instead of image/jpg, that’s why we’re exporting it in a bad format. 😃

I will fix it right away 😃

0reactions
jesusbotellacommented, Jun 14, 2018

Deployed! 🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found