We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1103e82 commit 8dbbce6Copy full SHA for 8dbbce6
1 file changed
src/PIL/Image.py
@@ -2543,7 +2543,9 @@ def save(
2543
from . import ImageFile
2544
2545
# may mutate self!
2546
- if isinstance(self, ImageFile.ImageFile) and filename == self.filename:
+ if isinstance(self, ImageFile.ImageFile) and os.path.abspath(
2547
+ filename
2548
+ ) == os.path.abspath(self.filename):
2549
self._ensure_mutable()
2550
else:
2551
self.load()
0 commit comments