image to the size of the window.

547 views
Skip to first unread message

serge gabellon

unread,
Nov 26, 2015, 8:20:09 AM11/26/15
to yad-common
can I put the pictures on the window size
In this case:
yad --width="500" --height="500"
My window = 500x500 pixels
if
yad --image=">500px" --width="500" --height="500"
My window = the size of picture

sorry, google translate :-)
regards

Victor Ananjevsky

unread,
Nov 26, 2015, 8:37:36 AM11/26/15
to yad-c...@googlegroups.com
no. yad is not an image viewer

pictures sets by --image option have a size of GTK_ICON_SIZE_DIALOG
by default it is a 48x48 px

if you need other sizes - change "gtk-icon-sizes" setting in
your local .gtkrc or settings.ini

actually, i can add dialog for simple image viewing if someone really
needs this

В Thu, 26 Nov 2015 05:20:09 -0800 (PST)
serge gabellon <serge...@gmail.com> писал:
> --
> You received this message because you are subscribed to the Google Groups "yad-common" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to yad-common+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Victor Ananjevsky <anan...@gmail.com>

Julio C. Neves

unread,
Nov 26, 2015, 8:58:32 AM11/26/15
to yad-c...@googlegroups.com
First of all, you can resize your image using the convert command

Ignoring aspect ratio:
$ convert -resize <width> <height> image1 image2
 <width> <height> in pixels

To keep the proportion, inform only <widht>

You can crop the image before resize it. Use the same sintax as above, changing -resize by -crop

Abcs,
Julio
@juliobash

P
róximos cursos de Shell
Cidade         Local Período
São Paulo 4Linux 07/12 a 11/12
Rio de Janeiro Voyager 15/12 a 17/12
Rio de Janeiro EDX 07/03 a 11/03
São Paulo 4Linux 11/04 a 15/04
Dou treinamento de Shell em qualquer cidade.
Para mais detalhes, me mande um e-mail.


serge gabellon

unread,
Nov 26, 2015, 11:01:47 AM11/26/15
to yad-common
Thank you

juliobash
I do that yet

Victor Ananjevsky
No problem, it's OK

I make an app to tag my mp3 files, some pictures from web and its size are sometimes very large but isn't a problem,

it's just for the presentation

thank you for your job,
I make every script with yad


FFRR

unread,
Dec 30, 2015, 5:35:47 PM12/30/15
to yad-common
Hi Victor

I think this would be a great feature, to have the window provide a full image background with buttons in front of it. I can see the benefit for touchscreen applications used in museums and schools. I can do this already in appinventor (for android devices/chrome arcwelder)

Tim

Robert Cooper

unread,
Aug 26, 2022, 1:13:19 PM8/26/22
to yad-common
I know it is a older post but, what about using yad --html --browser --uri="/path/some-webpage.html"  

and then use image map to create launching other webpages ?

This could be a kiosk too ?

Reply all
Reply to author
Forward
0 new messages