image manipulation

27 views
Skip to first unread message

Francisco Maria Moyano Casco

unread,
Aug 15, 2017, 9:29:26 AM8/15/17
to tryton
Hello,
      I'm working on tryton 3.8.
      Is it there any way to manipulate the images (fields.Binary) on the client? I mean, to resize it (no hard-coded), or to open on a third-party application, or maybe to make a zoom.

      The height and width parameters on the xml view only accepts integers? Not function fields, like the icons parameter?

      Thanks
           Francisco

Cédric Krier

unread,
Aug 15, 2017, 12:35:07 PM8/15/17
to tryton
On 2017-08-15 06:29, Francisco Maria Moyano Casco wrote:
> Hello,
> I'm working on tryton 3.8.
> Is it there any way to manipulate the images (fields.Binary) on the
> client? I mean, to resize it (no hard-coded), or to open on a third-party
> application, or maybe to make a zoom.

Open an image editor and resize it.

> The height and width parameters on the xml view only accepts
> integers? Not function fields, like the icons parameter?

This is only the size for displaying, XML view will never change the
data.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Cédric Krier

unread,
Aug 15, 2017, 1:10:06 PM8/15/17
to tryton
On 2017-08-15 18:34, Cédric Krier wrote:
> On 2017-08-15 06:29, Francisco Maria Moyano Casco wrote:
> > Hello,
> > I'm working on tryton 3.8.
> > Is it there any way to manipulate the images (fields.Binary) on the
> > client? I mean, to resize it (no hard-coded), or to open on a third-party
> > application, or maybe to make a zoom.
>
> Open an image editor and resize it.
>
> > The height and width parameters on the xml view only accepts
> > integers? Not function fields, like the icons parameter?
>
> This is only the size for displaying, XML view will never change the
> data.

But you may use the same pattern as I used on GNU Health:
https://hg.savannah.gnu.org/hgweb/health/rev/614c5c7ac0d1
Reply all
Reply to author
Forward
0 new messages