Image Canvas editor with missing image


(Tomáš Vilhelm) #1

Dear colleagues,
I use new fresh 5.0.2 and have some troubles with LBF forms. I would like to configure form based on IMAGE CANVAS type field.
After group, filed definition ( see image 1) there is no image present in image canvas editor at all (image 3)
I have tried different image sizes, types and canvas size definitions. But without success.
It is strange that non edited picture is present in visit summary after saving of “blank form” mentioned above. (image 2)

I tried clear cache of browser and different browsers as well.

Can you help me please ? Tomas


(Brady Miller) #2

hi @Tomas_Vilhelm ,

Are you following the instructions in this thread ?

-brady


(Tomáš Vilhelm) #3

Hi Brady,
Of course I have followed it :slight_smile:
Crucial steps:

  1. copy image into /sites/ default/images ( I tried both .png and .jpeg ext)
  2. Image definition in field description img=body-chart.png

But image editor is still blank. After saving of this blank template is non-edited image present in visit summary or printed report .

It runs on Linux Debian 10 buster
mariadb and php 7.3


(Brady Miller) #4

hi @Tomas_Vilhelm ,

Sorry, I haven’t had time to test this yet. Did you confirm this bug on one of the demos:
https://www.open-emr.org/wiki/index.php/Development_Demo#Demo_.28Alpine_3.10_-_uses_php_7.3.29

-brady


(Tomáš Vilhelm) #5

Hi @brady.miller,
I have tested on https://www.open-emr.org/wiki/index.php/Development_Demo#Demo_.28Alpine_3.10_-_uses_php_7.3.29
I can not confirm bug there. Everything works fine.
I have opened file for patient John Smith and prepared LBF form Pain Assessment. It works. Problem will be somewhere in my config. I have to investigate. Should be there some rights settings for images in /sites/default/images ?

Tomas


(Jerry P) #6

Try turning on Globals->Logging User Debug to see if helps debug. It sends php and window errors to display for easier troubleshooting.


(Tomáš Vilhelm) #7

It seems to be problem of rights.
Image was not accessible by user but only root.
I removed record of image source from layout_options table as well.
Now it is working finally.


(Tomáš Vilhelm) #8

Hi @brady.miller ,
I have investigated little bit deeply behavior of IMAGE CANVAS form.
it wors fine only if it is a part of 1st group in the LBF form.
After movinng it to lower groups , behavior is as mentioned in my 1st post.

I used 2 different machines with fresh 5.0.2 .

Tomas