bugGNU Health - Bugs: bug #46666, Resize the party photo

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #46666: Resize the party photo

Submitter:  Cédric Krier <cedk>
Submitted:  Fri 11 Dec 2015 04:57:08 AM UTC
   
 
Category:  Functionality Severity:  2 - Minor
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  cedk
Open/Closed:  Closed Release:  2.9.0
Module:  health Component:  None

Sun 13 Dec 2015 08:52:33 AM UTC, comment #2: 

Pushed in rev 682ec136a095

I also add here a proteus script that force the resize of all photos, if people wants to reduce the existing ones.

(file #35726)

Cédric Krier <cedk>
Sat 12 Dec 2015 11:02:41 AM UTC, comment #1: 

Thanks Cedric !

This is great, since this is just for the person picture, no high resolution needed, and it will save DB space.

Please go ahead and commit the patch.

Bests,

Luis Falcon <meanmicio>
Group administrator
Fri 11 Dec 2015 04:57:08 AM UTC, original submission:  

The party photo is displayed with the image widget using a size of 200x200 but if the user select a bigger image, it is this bigger image that is stored because the client don't make any modification to the data input.
So here is a patch that resize the photo to 200x200 on create and write like that the database is not filled by big pictures (as user often doesn't care about the size nor know how to resize an image).

https://codereview.appspot.com/280980043

Cédric Krier <cedk>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #35726:  party_picture.py added by cedk (934B - text/x-python-script)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by cedk (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-13 cedk Attached File- Added party_picture.py, #35726
        StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-12-12 meanmicio ReleaseNone 2.9.0
    2015-12-11 cedk Assigned toNone cedk

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code