Different border size for each side of the image

Registered by Jose Herran on 2008-04-16

Where great if creating a border for the imagen, on this let you define a different size for each side of the image, as in ccs or other. I meant x pixels for top border, y for right one, n for left one…

Blueprint information

Status:
Complete
Approver:
Stani
Priority:
Medium
Drafter:
Stani
Direction:
Approved
Assignee:
Nadia Alramli
Definition:
Approved
Series goal:
Accepted for 0.2
Implementation:
Implemented
Milestone target:
milestone icon 0.2.1
Started by
Stani on 2009-06-03
Completed by
Stani on 2009-08-27

Whiteboard

Some quick notes:
- def border(image, all, left, right, top, bottom, colour, alpha)
- all is added to every side, so the left border is all+left, and so on ...
- I would first do the top and bottom border (=boxes) and then left and right, so you avoid overlap (which is an issue for transparency)

Please add conditional showing fields with the get_relevant_field_labels() method. See save.py as an example and read here the last note on fields: http://photobatch.wikidot.com/writing-actions#toc13

You should add as a first field but add _t():
METHODS = ['Fixed','Custom'] #feel free for a better formulation
fields['Method'] = self.Choicefield(METHODS[0],choices=METHODS)

Fixed -> All
Custom -> Left, Top, Down, Right

(I might even myself add a condition to hide the opacity field when all values are positive.)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.