{"action":"created","issue":{"url":"https://api.github.com/repos/openemr/openemr/issues/133","repository_url":"https://api.github.com/repos/openemr/openemr","labels_url":"https://api.github.com/repos/openemr/openemr/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/openemr/openemr/issues/133/comments","events_url":"https://api.github.com/repos/openemr/openemr/issues/133/events","html_url":"https://github.com/openemr/openemr/pull/133","id":158108578,"number":133,"title":"Generate thumbnail images for documents stored on disk / CouchDB","user":{"login":"olegsv","id":4197479,"avatar_url":"https://avatars.githubusercontent.com/u/4197479?v=3","gravatar_id":"","url":"https://api.github.com/users/olegsv","html_url":"https://github.com/olegsv","followers_url":"https://api.github.com/users/olegsv/followers","following_url":"https://api.github.com/users/olegsv/following{/other_user}","gists_url":"https://api.github.com/users/olegsv/gists{/gist_id}","starred_url":"https://api.github.com/users/olegsv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegsv/subscriptions","organizations_url":"https://api.github.com/users/olegsv/orgs","repos_url":"https://api.github.com/users/olegsv/repos","events_url":"https://api.github.com/users/olegsv/events{/privacy}","received_events_url":"https://api.github.com/users/olegsv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-06-02T10:28:54Z","updated_at":"2016-06-29T08:33:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openemr/openemr/pulls/133","html_url":"https://github.com/openemr/openemr/pull/133","diff_url":"https://github.com/openemr/openemr/pull/133.diff","patch_url":"https://github.com/openemr/openemr/pull/133.patch"},"body":"Generate preview thumbnails for images to improve loading speed.  \r\n\r\nNew Globals configuration parameters: \r\n\r\n1. Generate thumbnail – it's a boolean field, if it's false thumbnail feature won't work. (by default it's  false). \r\n2. Thumbnail size – maximum size of thumbnail both X and Y dimensions. (the generator calculate this by the image type (vertical or horizontal) ). \r\n \r\nFunctionality. \r\n\r\nThis generator uses PHP GD functions to make thumbnails. \r\n\r\nIf Generate Thumbnails set to On, all uploaded images will be saved in 2 copies: an original file for download , and a thumbnail for presentation. \r\n\r\nThere is option to present original image by adding additional parameter to reterive document url (http://localhost/main_openemr/openemr/controller.php?document&retrieve&patient_id=<PATIEN_ID>&document_id=<DOC_ID>) . \r\nNew parameter - 'show_original=true' (in the end of all parameters). \r\n\r\nLimitations: \r\n\r\n1. Generate for images only, can't generate PDF / Word thumbnail yet.\r\n2. This feature can't generate thumbnail when  encrypted file is uploaded.\r\n\r\nGenerator for existing files  \r\n\r\nFor backward compatibility we included a possibility to generate missing thumbnails. \r\n\r\nNew button in Administration->Files category to start thumbnail generation for all images, this view returns all failed files.   \r\n \r\n "},"comment":{"url":"https://api.github.com/repos/openemr/openemr/issues/comments/229291988","html_url":"https://github.com/openemr/openemr/pull/133#issuecomment-229291988","issue_url":"https://api.github.com/repos/openemr/openemr/issues/133","id":229291988,"user":{"login":"bradymiller","id":278968,"avatar_url":"https://avatars.githubusercontent.com/u/278968?v=3","gravatar_id":"","url":"https://api.github.com/users/bradymiller","html_url":"https://github.com/bradymiller","followers_url":"https://api.github.com/users/bradymiller/followers","following_url":"https://api.github.com/users/bradymiller/following{/other_user}","gists_url":"https://api.github.com/users/bradymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymiller/subscriptions","organizations_url":"https://api.github.com/users/bradymiller/orgs","repos_url":"https://api.github.com/users/bradymiller/repos","events_url":"https://api.github.com/users/bradymiller/events{/privacy}","received_events_url":"https://api.github.com/users/bradymiller/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T08:33:43Z","updated_at":"2016-06-29T08:33:43Z","body":"Completed another review . This is getting close. Guessing it will be ready on your next revision (if address my review comments). I am assuming that you have tested this on CouchDB."}}
{"actor":{"display_login":"bradymiller"}}