Hi All,
I have an img with a valid filename
I set the filename of this img to an invalid filename, it becomes grey
I set the filename of this img to empty, it remains grey
I expect it becomes white
Is there a way to avoid the grey ?
Best regards
Jean-Marc
avoid the grey of an img with an invalid filename
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
avoid the grey of an img with an invalid filename
https://alternatic.ch
Re: avoid the grey of an img with an invalid filename
Jean-Marc-
I'm going to make a guess here: you want the image to be white in order to blend in with a white background as if there were no image present. If that is the case, when you sent the filename to empty, why not just hide the image? And show it again when you set the filename to an existing file?
I'm going to make a guess here: you want the image to be white in order to blend in with a white background as if there were no image present. If that is the case, when you sent the filename to empty, why not just hide the image? And show it again when you set the filename to an existing file?
Re: avoid the grey of an img with an invalid filename
Hi Mark,
nevertheless I consider this a BUG!
The images should become transparent again after setting the filename to empty again, but it doesn't!
I think the image should NOT turn grey at all after setting an invalid filename!
And I already reported this at least 6 years ago.
@Jean-Marc,
in your case you should check "the result" immediately after setting the filename and hide the image if the result is not empty!
Best
Klaus
nevertheless I consider this a BUG!
The images should become transparent again after setting the filename to empty again, but it doesn't!
I think the image should NOT turn grey at all after setting an invalid filename!
And I already reported this at least 6 years ago.

@Jean-Marc,
in your case you should check "the result" immediately after setting the filename and hide the image if the result is not empty!
Best
Klaus
Re: avoid the grey of an img with an invalid filename
Hi Mark and Klaus,
Thank for reply
Best regards
Jean-Marc
Thank for reply
Ok. I'll do thatcheck "the result" immediately after setting the filename and hide the image if the result is not empty!
Best regards
Jean-Marc
https://alternatic.ch
Re: avoid the grey of an img with an invalid filename
Klaus-
I agree, but the question was not "is this a bug?" but "how do I do this?"

I agree, but the question was not "is this a bug?" but "how do I do this?"
