Problematic file name change when saving as a different type

Open
#229 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
desktop

Research direction

Start by locating the Save image dialog and the file-type selection handling in the C sources. Reproduce the issue with aaa.jpg and bbb.png, then verify that choosing PNG preserves the base name as aaa.png rather than selecting bbb.png, without overwriting an existing file.

Written by the indexing model from the issue text.

Description

Distribution

LinuxMint XFCE 22.2

Package version

3.4.7

Frequency

Always

Bug description

Thank you for the great app!
I have a minor issue with it, hope it would be a useful improvement.
When I open a picture of one format and decide to save it in a different format, in the 'Save image' dialog as soon as I choose a new file type, file name automatically gets an existing file name of new file type from the list in the same folder.
It can lead to overwriting existing file by mistake.

Steps to reproduce

Example:
a folder with 'aaa.jpg' and 'bbb.png'.

When I open 'aaa.jpg' and decide to save it in a different format, for example '.png', in the 'Save image' dialog as soon as I choose new file type (png), file name automatically gets an existing file name from the list in the same folder - 'bbb.png' instead of (expected) 'aaa.png'

Expected behavior

It would be better to keep the file name as it was, and just to change the extension.

So, it would be better to change it to 'aaa.png'

Additional information

Older versions of Pix on my LinuxMint 21.x have the same behavior, so it's not a new thing. Same behavior on Manjaro XFCE.

Dominant language
C
Stars
270
Forks
47
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/pix

All issues in linuxmint/pix

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.