OrionMD / pacsbin-community

Public issue tracker for the Pacsbin platform
0 stars 0 forks source link

Static image pasting into Notes #18

Closed sgaddam0609 closed 1 year ago

sgaddam0609 commented 1 year ago

For some of the test cases, the copying and pasting of key images works well but for most of the test cases, when I try to paste images into the text box under notes, I get an error message stating "pasted images must be less than 500kb." However, the actual image size is 370kb for one of the examples.

jmhmd commented 1 year ago

Can you email me an example image that is throwing the error? Thx for reporting, this is a new feature.

sgaddam0609 commented 1 year ago

Hey Jason!

Here are a couple where it didn't work.

MRI image from a test case. [image: image.png]

CT image from a test case [image: image.png]

Here is one where it worked! [image: image.png]

On Sat, May 13, 2023 at 6:26 PM Jason Hostetter @.***> wrote:

Can you email me an example image that is throwing the error? Thx for reporting, this is a new feature.

— Reply to this email directly, view it on GitHub https://github.com/OrionMD/pacsbin-community/issues/18#issuecomment-1546760974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDKKZV7JNCKFFAHMOTYXSDXGADBBANCNFSM6AAAAAAYAVO4NA . You are receiving this because you authored the thread.Message ID: @.***>

-- Durga Sivacharan Gaddam (Siva) Stanford University Neuroradiology Fellow (PGY-7) @.***

jmhmd commented 1 year ago

Now that I think about it I think I had been experimenting with different size limits and probably have one of the image paste methods set to 300kb even though it reports the limit as 500kb. I'll look tomorrow.

jmhmd commented 1 year ago

That was indeed the problem. I updated the code to accurately reflect the image size limit, which at the moment is set to 200kb. I'm not sure quite what the right limit is, maybe 200kb is too small. If an image you want to use is too big, you can always resize it prior to pasting in, but if you find 200kb to be too restrictive, maybe we can increase it.