Warn when exporting a bitmap with an invalid file extension.

Bug #1195038 reported by insaner
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Jabiertxof

Bug Description

i was running into strange errors after exporting some images from inkscape directly to jpg files (i usually do png files, but the requester of the image allows only jpg).. and when i opened the image in gimp and resaved it with another filename and then did a diff, i realized the one generated by inkscape was actually a png file but with a jpg extension..

dont know if inkscape handles jpg, but if it does, its not doing it during export, and if it doesnt, there should be some sort of warning if you choose a different extension (which usually is accompanied by the expectation that the file will be of that format.. you know, like what happens in gimp..)

thanks

Revision history for this message
jazzynico (jazzynico) wrote :

You can only export to PNG (JPG is not currently supported).
Note that in the trunk version, the File>Export Bitmap entry was renamed File>Export PNG Image to prevent confusion.

See Bug #171390 "Extended Raster export support please".

Changed in inkscape:
status: New → Invalid
tags: added: bitmap exporting
Revision history for this message
jazzynico (jazzynico) wrote :

Changing status, and setting importance to wishlist for the file extension handling (warning, automatic replacement...).

Changed in inkscape:
importance: Undecided → Wishlist
status: Invalid → New
summary: - exporting image to jpg creates a png with .jpg extension NOT jpeg image
+ Warn when exporting a bitmap with an invalid file extension.
Revision history for this message
insaner (insaner) wrote :

yeah i think a warning while Bug #171390 is still not resolved would be the best course of action for the time being.. and even after.. since unknown file extensions are bound to be tried by oblivious users (such as myself).. you can always support 21 image filetypes, and someone is going to want to try to save in filetype #22..

jazzynico (jazzynico)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
Jabiertxof (jabiertxof) wrote :

In 0.48 the .png is added auto to all exports. It prevent for example overwrite other files like current SVG.

Revision history for this message
username132 (sean-van-der-smythe) wrote :

In 0.91 on Windows 7, Inkscape will allow you to export a file in PNG format but with no extension. I think it should automatically add the extension to the end of the given filename like many other programs do.

Revision history for this message
su_v (suv-lp) wrote :

Related commit:
Revision 14238 : Force PNG bitmap export to always write with PNG extension

@JazzyNico - It's not a warning, but effectively prevents from exporting with a wrong file ending: Can we close this report (for milestone 0.92)?

Revision history for this message
jazzynico (jazzynico) wrote :

~suv - Confirmed, the report can be considered fixed.
Thanks!

Changed in inkscape:
milestone: none → 0.92
status: Confirmed → Fix Committed
su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Jabiertxof (jabiertxof)
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.