penpot
penpot copied to clipboard
bug: Some image formats include the extension when importing
Steps To Reproduce
- Import jpg/png/svg images
Expected behavior
I think that in the case of svg images - not including the extension in the image name - is the correct behavior, because:
- There is no benefit from including the extension in the image's name, but instead we can display the type/extension of the image next to the image's name as a hint.
- If you imported an image let's call it penpot.png and then when you are going to export it again as .png the exported image will be downloaded as penpot.png.png unless of course you removed the extension from the image name.
Actual behavior
When importing an svg image, the image in Penpot will be imported and the extension (.svg) will not be included in it's name, but when importing png or jpg images the extension will be included in the image's name.
Screenshots or video
Desktop (please complete the following information)
- OS: Windows 10
- Browser: Chrome/Firefox
Smartphone (please complete the following information)
No response
Environment (please complete the following information)
No response
Frontend Stack Trace
No response
Backend Stack Trace
No response
Additional context
No response
Thank you very much @ahmed-0011
I've just created this issue on Taiga to track it -> https://tree.taiga.io/project/penpot/issue/5485
I am taking initiative to solve this issue