Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MU4 Task] Add functionality "Replace image" #15946

Open
MortenHe opened this issue Jan 18, 2023 · 17 comments · May be fixed by #15985
Open

[MU4 Task] Add functionality "Replace image" #15946

MortenHe opened this issue Jan 18, 2023 · 17 comments · May be fixed by #15985
Labels
feature request Used to suggest improvements or new capabilities

Comments

@MortenHe
Copy link

First of all. Great software, great team, great support. Thank you very much!

Here is my enheacement suggestion:

I sometimes add an image to a score like a logo that I designed in Photoshop.
When I want to replace the image (e.g. adjustig the graphic but keeping its dimensions), the current workflow is to delete the image an insert it again.

I'd like to have the option. "Right click on image -> replace image". So the image would stay in its place and only its content would be updated.

Would do you think?

Many greetings from Freiburg / Germany
Martin

@cbjeukendrup cbjeukendrup added the feature request Used to suggest improvements or new capabilities label Jan 18, 2023
@Salavin
Copy link
Contributor

Salavin commented Jan 19, 2023

Would adding a button to the Properties tab be sufficient, like so?
Untitled

@cbjeukendrup
Copy link
Contributor

@Salavin Nice! Maybe it would look even better if you make the button fill the whole width.

(Quickly mentioning @bkunda too 🙂)

@Salavin
Copy link
Contributor

Salavin commented Jan 19, 2023

Sure!
image

@iwoithe
Copy link
Contributor

iwoithe commented Jan 20, 2023

Working on it. Currently still adding the functionality.

Update PR -> #15985

I have added a separator line as the replace image button doesn't have anything to do with the check boxes.

iwoithe added a commit to iwoithe/MuseScore that referenced this issue Jan 20, 2023
@iwoithe iwoithe linked a pull request Jan 20, 2023 that will close this issue
8 tasks
iwoithe added a commit to iwoithe/MuseScore that referenced this issue Jan 20, 2023
@MortenHe
Copy link
Author

The button in the properties tab looks great.

Maybe the "right click on image -> replcae image" could be added later.

But I'm already really glad with the button solution.

@iwoithe
Copy link
Contributor

iwoithe commented Jan 21, 2023

Maybe the "right click on image -> replcae image" could be added later.

@bkunda What do you think of this?

@bkunda
Copy link

bkunda commented Jan 24, 2023

Maybe the "right click on image -> replcae image" could be added later.

@bkunda What do you think of this?

I think adding it to the context menu is a reasonable suggestion; it adds another (intuitive) option to discover this feature, and might also have some additional benefits for accessibility too.

I'd probably suggest positioning it in the top panel, together with other options for removing the selected image:

Mac

But this doesn't have to be done right away if you want to keep things simple for this PR 🙂

@cbjeukendrup
Copy link
Contributor

cbjeukendrup commented Jan 24, 2023

@iwoithe One remark; quoting the original issue description:

e.g. adjusting the graphic but keeping its dimensions

So the image would stay in its place and only its content would be updated.

From the code in your PR, it is not immediately clear to me that this will happen indeed. Would be great if you could make it work like that 🙂

Also, please make sure that it works correctly with undo / redo (currently, the code looks like this will indeed work, but if you implement a new method in the Image class to replace just the image content, this method needs to be written in an undoable way).

@iwoithe
Copy link
Contributor

iwoithe commented Jan 24, 2023

But this doesn't have to be done right away if you want to keep things simple for this PR 🙂

I'll stick to what is currently in the PR. Once that is merged, I'll open a new PR with the context menu item. Will be a pretty quick change.

EDIT I'll add the context menu item in this PR

iwoithe added a commit to iwoithe/MuseScore that referenced this issue Jan 26, 2023
@iwoithe
Copy link
Contributor

iwoithe commented Jan 30, 2023

From the code in your PR, it is not immediately clear to me that this will happen indeed. Would be great if you could make it work like that 🙂

@cbjeukendrup Thanks for pointing that out. Kind of overlooked that 🙄

Though I wonder if having the option for both would be useful. Something like this?

REPLACE IMAGE BUTTON

The only problem I see with this is that the additional click may annoy some users.

@cbjeukendrup
Copy link
Contributor

@bkunda What do you think about the suggestion above?

iwoithe added a commit to iwoithe/MuseScore that referenced this issue Mar 11, 2023
@bkunda
Copy link

bkunda commented Mar 16, 2023

@bkunda What do you think about the suggestion above?

Honestly, I can't make up my mind about this one.
I admit I was rather fond of the simplicity of just clicking Replace image and seeing the OS file manager dialog. The duplication of the "Replace image" label is potentially a little jarring, but at the same time it's also not really ambiguous.

I'd like a some more designer opinions on this @Tantacrul @jessjwilliamson.

@Tantacrul
Copy link
Contributor

I quite like the idea of having it in Properties (with the additional options @iwoithe showed). I also think it should be available in the context menu too.

To be a design / product pedant: unique options should never be in the context menu. The context menu should only be a convenient way of accessing options already found elsewhere.

@Tantacrul
Copy link
Contributor

For me though, I'd opt for a little floating widget above an image when you click on it that says 'Replace image'.

You see this all over the place. SquareSpace do it really well when you are editing images for your website. Just click on them and you see results like this above:

image

@Tantacrul
Copy link
Contributor

However, we can always do the floating thing later. Properties + context menu is more than enough for now.

@bkunda
Copy link

bkunda commented Mar 16, 2023

This is good enough for me 🙂.

@iwoithe let's proceed with your suggestion of the options in Properties, and if you want to also add the context menu option then go ahead.

I promise I won't be so tardy with testing as I was with replying to this conversation!

@Tantacrul
Copy link
Contributor

I would say you should add the replace image option in the context menu (obviously only when RC on an image!). It'd be swell! Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Used to suggest improvements or new capabilities
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants