Announcement

Collapse
No announcement yet.

Help creating service menu

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help creating service menu

    I got that script in Nautilus-scripts in gnome. Is there way to change it to service menu? I need to resize images easily.


    Code:
    #!/bin/bash
    title="Pienennä kuvan kokoa"
    scale="Kutista kokoon <pituus>x<korkeus>"
    
    case $LANG in
    sv* )
    title="Skala bild"
    scale="Storlek att skala till <längd>x<höjd>";;
    esac
    
    imgsize=`gdialog --title "$title" --inputbox "$scale" 200 100 2>&1`
    
    while [ $# -gt 0 ]; do
    picture=$1
    /usr/bin/convert -scale $imgsize "$picture" "$imgsize-$picture"
    shift
    done

    #2
    Re: Help creating service menu

    Originally posted by Owdy
    I got that script in Nautilus-scripts in gnome. Is there way to change it to service menu? I need to resize images easily.
    I'm sure it can be done with some modification and effort (like switching gdialog to kdialog), but I think there are a few image resizing service menus floating around kde-look that can save you the trouble.

    Here's a recent one (which I haven't tried myself, but you could give it a go):
    http://www.kde-look.org/content/show.php?content=47607

    Comment


      #3
      Re: Help creating service menu

      Great, thanks! Ill try that.

      Comment

      Working...
      X