penpot icon indicating copy to clipboard operation
penpot copied to clipboard

bug: Some image formats include the extension when importing

Open ahmed-0011 opened this issue 1 year ago • 2 comments

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:

  1. 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.
  2. 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

penpot1 penpot2

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

ahmed-0011 avatar Jun 12 '23 18:06 ahmed-0011

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

superalex avatar Jun 16 '23 09:06 superalex

I am taking initiative to solve this issue

Omsoni06 avatar Oct 14 '23 07:10 Omsoni06