### ImageMagick version

7.1.1.15

### Operating system

Linux

### Operating system, version and so on

ALT Workstation K 10.1

### Description

File saved in RAW format has JPEG data and can't be opened by identify/display.

### Steps to Reproduce

1. `$ display file.jpg`
2. File > Save > Format > RAW > Save

**Actual result:** The file has JPEG data and can't be opened by identify/display:
```
$ file file.raw
file.raw: JPEG image data, JFIF standard 1.01, resolution (DPI), density 300x300, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=11, manufacturer=NIKON CORPORATION, model=NIKON D3100, orientation=upper-left, xresolution=176, yresolution=184, resolutionunit=2, software=GIMP 2.8.10, datetime=2014:10:06 12:13:58, GPS-Data], baseline, precision 8, 4608x3072, components 3

$ identify file.raw
identify: Unsupported file format or not RAW file `file.raw' @ error/dng.c/ReadDNGImage/539.

$ display file.raw
display: Unsupported file format or not RAW file `file.raw' @ error/dng.c/ReadDNGImage/539
```

**Expected result:** Image is saved in RAW format.


### Images

_No response_
File saved in RAW format has JPEG data
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : File saved in RAW format has JPEG data
Issue date:

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

7.1.1.15

### Operating system

Linux

### Operating system, version and so on

ALT Workstation K 10.1

### Description

File saved in RAW format has JPEG data and can't be opened by identify/display.

### Steps to Reproduce

1. `$ display file.jpg`
2. File > Save > Format > RAW > Save

**Actual result:** The file has JPEG data and can't be opened by identify/display:
```
$ file file.raw
file.raw: JPEG image data, JFIF standard 1.01, resolution (DPI), density 300x300, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=11, manufacturer=NIKON CORPORATION, model=NIKON D3100, orientation=upper-left, xresolution=176, yresolution=184, resolutionunit=2, software=GIMP 2.8.10, datetime=2014:10:06 12:13:58, GPS-Data], baseline, precision 8, 4608x3072, components 3

$ identify file.raw
identify: Unsupported file format or not RAW file `file.raw' @ error/dng.c/ReadDNGImage/539.

$ display file.raw
display: Unsupported file format or not RAW file `file.raw' @ error/dng.c/ReadDNGImage/539
```

**Expected result:** Image is saved in RAW format.


### Images

_No response_
--- end body ---

None