### ImageMagick version

7.1.1-30

### Operating system

Linux

### Operating system, version and so on

Slackware Current

### Description

See this slackware forum
[https://www.linuxquestions.org/questions/slackware-14/svg-overwritten-by-identify-4175735985/](https://www.linuxquestions.org/questions/slackware-14/svg-overwritten-by-identify-4175735985)

Error message shown

`/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Document is empty

^

** (org.inkscape.Inkscape:669): WARNING **: 20:46:12.346: Could not detect file format. Tried to open it as an SVG anyway but this also failed.
/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Start tag expected, '<' not found
/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Document is empty
^
ink_file_open: '/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb' cannot be opened!
InkscapeApplication::document_open: Failed to open: /tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb
ConcreteInkscapeApplication::on_open: failed to create document!`

### Steps to Reproduce

Run the following commands on terminal
`identify <filename.svg>`
`display <filename.svg>`

### Images

_No response_
identify and display command destroys SVG files
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : identify and display command destroys SVG files
Issue date:

--- start body ---
### ImageMagick version

7.1.1-30

### Operating system

Linux

### Operating system, version and so on

Slackware Current

### Description

See this slackware forum
[https://www.linuxquestions.org/questions/slackware-14/svg-overwritten-by-identify-4175735985/](https://www.linuxquestions.org/questions/slackware-14/svg-overwritten-by-identify-4175735985)

Error message shown

`/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Document is empty

^

** (org.inkscape.Inkscape:669): WARNING **: 20:46:12.346: Could not detect file format. Tried to open it as an SVG anyway but this also failed.
/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Start tag expected, '<' not found
/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb:1: parser error : Document is empty
^
ink_file_open: '/tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb' cannot be opened!
InkscapeApplication::document_open: Failed to open: /tmp/magick-W0ZTRRwTcj6czhomV-9zgZpQS5yVuXfb
ConcreteInkscapeApplication::on_open: failed to create document!`

### Steps to Reproduce

Run the following commands on terminal
`identify <filename.svg>`
`display <filename.svg>`

### Images

_No response_
--- end body ---

The issue describes a problem where the `identify` and `display` commands in ImageMagick overwrite SVG files, resulting in corrupted files that cannot be opened. This behavior can lead to data loss if users are not aware that their original SVG files are being modified or destroyed by these commands.