This will be useful for docs who want to draw on images of a body or body part to show the location and nature of some ailment. The optional starting image can be stored in the sites/default/images/ directory and is specified for the layout field by putting “image=imagename” in its Description column.
There are 2 commits, the first to bring in the LiterallyCanvas and React JavaScript libraries. Code is here:
@Rod
Well I placed a file (jpg and png) into sites/default/images/ directory in placed “image=imagename” in its Description column in the LBF.
No Image is displayed.
I also tested image=kidney.png, image=kidney.jpg, “image=kidney.png”, “image=kidney.jpg”.
All I find in Apache Error log is this.
Undefined variable: is_lbf in /var/www/openemr/interface/forms/LBF/new.php on line 484, referer: http://localhost/openemr/interface/patient_file/encounter/forms.php
[Wed Mar 08 19:51:48.575920 2017] [:error] [pid 3115] [client 127.0.0.1:55612]
PHP Notice: Undefined variable: is_lbf in /var/www/openemr/interface/forms/LBF/new.php on line 488
You might check the Apache access log while opening the form to see if it’s trying to load the image. Also make sure you’re opening a new form and not an existing one, so it will bring in the default image and not one that may already be in the form data.
Nope still a no go… Here is what I found in the access log. Image is Kidney.jpg. All I get is a is a small white box in the middle of the Literally Canvas app. FYI: And in the white box is where I can draw.
Couple of Questions:
Any Specific file types (jpg,png,bmp…)?
Any Maximum or Minimum file sizes?
Any other file specs?
Ooooh…that never even crossed my mind.
So I need to consider image size in both file and LBF.
And speaking in pixels…1296x728 is too large (see attachment).
What would you recommend as sizes go.
Yup entries are there…
The above screenshot is from chrome, FireFox gives back less. IE (For the same screen shot above) give back an unknow protocol and type not available.
Still haven’t figured it out.
Ubuntu 14.04
PHP 5
OpenEMR 5.0.0(1)