Page 1 of 1
avoid the grey of an img with an invalid filename
Posted: Mon Dec 05, 2011 10:55 pm
by jmburnod
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
Re: avoid the grey of an img with an invalid filename
Posted: Mon Dec 05, 2011 11:02 pm
by mwieder
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?
Re: avoid the grey of an img with an invalid filename
Posted: Tue Dec 06, 2011 11:26 am
by Klaus
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
Re: avoid the grey of an img with an invalid filename
Posted: Tue Dec 06, 2011 5:54 pm
by jmburnod
Hi Mark and Klaus,
Thank for reply
check "the result" immediately after setting the filename and hide the image if the result is not empty!
Ok. I'll do that
Best regards
Jean-Marc
Re: avoid the grey of an img with an invalid filename
Posted: Tue Dec 06, 2011 7:36 pm
by mwieder
Klaus-
I agree, but the question was not "is this a bug?" but "how do I do this?"
