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

Submitted by:  Cédric Krier <cedk>
Submitted on:  Fri 11 Dec 2015 04:57:08 AM UTC  
 
Category: FunctionalitySeverity: 2 - Minor
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Cédric Krier <cedk>
Open/Closed: ClosedRelease: 2.9.0
Module: health

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>In charge of this item.
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>
Project 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>In charge of this item.

 

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
  • -unavailable- added by meanmicio (Posted a comment)
  • -unavailable- added by cedk (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Dec 2015 08:52:33 AM UTCcedkAttached File-=>Added party_picture.py, #35726
      StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sat 12 Dec 2015 11:03:08 AM UTCmeanmicioReleaseNone=>2.9.0
    Fri 11 Dec 2015 04:57:30 AM UTCcedkAssigned toNone=>cedk

    Back to the top


    Powered by Savane 3.1-cleanup1