# All Cropped Images outside cassette borders, can't be stored to Orthanc. Help.

**URL:** https://discourse.orthanc-server.org/t/all-cropped-images-outside-cassette-borders-cant-be-stored-to-orthanc-help/2697
**Category:** Google Groups archive
**Created:** [November 15, 2021, 6:23am UTC](https://discourse.orthanc-server.org/t/all-cropped-images-outside-cassette-borders-cant-be-stored-to-orthanc-help/2697 "2021-11-15T06:23:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![designated\_profile](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@designated\_profile](https://discourse.orthanc-server.org/u/designated_profile)
#### Post date: [November 15, 2021, 6:23am UTC](https://discourse.orthanc-server.org/t/all-cropped-images-outside-cassette-borders-cant-be-stored-to-orthanc-help/2697/1 "2021-11-15T06:23:55Z")

</div>

Orthanc is now doing a great advantage for us. Our covid ward scu workstations can now query and retrieve chest x-ray follow ups of all our covid patients. The only problem for us, is that, although orthanc accepts all properly cropped images, we still have about 3000 unproperly cropped history radiographs, that we still can’t send and store. These history radiographs are badly needed for comparison studies. I now have this perplexing problem, if I should uncrop and recrop all these 3000 images one by 1 on my own. I think I can’t accomplish it. Within my 8 hour shift, I still have so many radiography cases to attend to. I have set, Verbose and Trace logs just right after I have sent an example of this unproperly cropped image. And it’s attached on this conversation for everyone to see, including our server’s orthanc.json configuration file. ![CASSETTE.jpg](https://discourse.orthanc-server.org/uploads/default/original/1X/b418a66509fee50110bda9b25258484541151917.jpeg)

[orthanc\_jason.txt](https://discourse.orthanc-server.org/uploads/short-url/dyq65M0ulACDhWnWtApN1vsPE5W.txt) (36 KB)

[verbose\_trace\_logs.txt](https://discourse.orthanc-server.org/uploads/short-url/cYr1eHzMxsgzKvjWkJLHwsCPrRG.txt) (26.5 KB)

---

<div class="post-metadata">

### Author: ![Alain\_Mazy1](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@Alain\_Mazy1](https://discourse.orthanc-server.org/u/Alain_Mazy1)
#### Post date: [November 15, 2021, 6:15pm UTC](https://discourse.orthanc-server.org/t/all-cropped-images-outside-cassette-borders-cant-be-stored-to-orthanc-help/2697/2 "2021-11-15T18:15:43Z")

</div>

Hi,

Without looking at the logs, I was going to suggest you to enable the UnknownSopClassAccepted configuration: [https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l159](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l159)

From the logs, it seems that Orthanc times-out after 30 seconds because the DEVELOPER modality did not send any data. I doubt that increasing the DicomScpTimeout configuration will help.

Best regards,

Alain

![CASSETTE.jpg](https://discourse.orthanc-server.org/uploads/default/original/1X/b418a66509fee50110bda9b25258484541151917.jpeg)

---

<div class="post-metadata">

### Author: ![designated\_profile](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@designated\_profile](https://discourse.orthanc-server.org/u/designated_profile)
#### Post date: [November 18, 2021, 10:12am UTC](https://discourse.orthanc-server.org/t/all-cropped-images-outside-cassette-borders-cant-be-stored-to-orthanc-help/2697/3 "2021-11-18T10:12:07Z")

</div>

Hello Alain,

Thank you very much for helping Alain. I also think very much, you are correct. That it goes along the lines of the S.O.P. class, not being accepted by Orthanc. Because the trace log itself says orthanc can not accept the abstract syntax of every unproperly cropped images, and the abstract syntax pertains to the modality type which also defines the SOP class. And yes, I also think you got it right, orthanc can not accept it as a Computed Radiography modality anymore, every time the image is cropped outside the 14 by 17 cassette border limit. The very sad thing is Alain, I already enabled orthanc.json to accept all unknown SOP classes and have already increased the SCP timeout at 170 seconds, yet still, ORTHANC does not accept unproperly cropped images. Could there be any more settings or any rest API commands that we can tweak? ![Abstract_Syntax_Not_Supported.jpg](https://discourse.orthanc-server.org/uploads/default/original/2X/c/cf0779e9b45c3edc3ee6989a0a60624630f6d54e.jpeg)

---

<div class="post-metadata">

### Author: ![Alain\_Mazy1](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@Alain\_Mazy1](https://discourse.orthanc-server.org/u/Alain_Mazy1)
#### Post date: [November 19, 2021, 8:39am UTC](https://discourse.orthanc-server.org/t/all-cropped-images-outside-cassette-borders-cant-be-stored-to-orthanc-help/2697/4 "2021-11-19T08:39:09Z")

</div>

Hi,

The fact that one abstract syntax is not supported does not mean that the association fails. The logs seem to show that it succeeds (and it also times out later).

For Orthanc, the location of the crop makes no difference but, for the cropping tool it does. In my opinion, the cropping tool just doesn’t send the images that are cropped outside the cassette.

Best regards,

Alain

![Abstract_Syntax_Not_Supported.jpg](https://discourse.orthanc-server.org/uploads/default/original/2X/c/cf0779e9b45c3edc3ee6989a0a60624630f6d54e.jpeg)

---

<div class="post-metadata">

### Author: ![designated\_profile](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@designated\_profile](https://discourse.orthanc-server.org/u/designated_profile)
#### Post date: [March 26, 2022, 5:56am UTC](https://discourse.orthanc-server.org/t/all-cropped-images-outside-cassette-borders-cant-be-stored-to-orthanc-help/2697/5 "2022-03-26T05:56:15Z")

</div>

Sorry for the very late reply. Because of your word of advice, we figured out a setting to send without cropping. We sent it all. Thank you very much.
