VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: how tos..scale image in kde-contextmenue  (Read 2646 times)

ghartl1

  • Vectorite
  • ***
  • Posts: 379
how tos..scale image in kde-contextmenue
« on: September 20, 2007, 07:46:27 am »

sorry,

i know i am wrong here.
i didnt find a menue "new topic" in the how-to section..
would the admin be so kind to puttung me in the correct section (howtos)

so..back to topic..scale images with kde

i created a useful(at least for me) contextmenueentry to scale images.i always have had trouble to scale images to an appropirate size for my friends..open the images with gimp...and scale them there to a smaller size..and send them via email..(a lot of my friends still use dialup-modems)

so you can tweak the images (usually jpegs) on the cli with imagemagick-tools...or gimp or whatever..
for me as an lazy user not acceptable.
i created a new entry in the contextmenue(actually, i got the hint from a forum somewhere..dont remember yet)

works only with kde (i use kde 3.5.6)
requirements: kde and the package imagemagick should be installed

what to do:

go to the file:~/.kde/share/apps/konqueror/servicemenus...

create a new file..i have called it "scale-image.desktop"

copy and paste the lines below in this file..

[Desktop Entry]
ServiceTypes=image/*
Actions=scaleBy50;scaleBy25
X-KDE-Submenu=Bild verkleinern

[Desktop Action scaleBy50]
Name=um 50 Prozent
Name=um 50 Prozent
Exec=mogrify -geometry 50%% %f

[Desktop Action scaleBy25]
Name=um 25 Prozent
Name=um 25 Prozent
Exec=mogrify -geometry 25%% %f

if necessary, alter the words "Bild verkleinern" and "um 50(25) Prozent" to your language..eg. in english:"scale image" and "scale by 50 percent)
my language is german :-)

you are set....try and enjoy

here a snapshot..a little big..but you can see what its look like(and in english too :-)

http://www.250kb.de/u/070920/j/1b1eb5f5.jpg

greets g√ľnter
« Last Edit: September 21, 2007, 06:46:50 am by The Headacher »
Logged

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: how tos..scale image in kde-contextmenue
« Reply #1 on: September 21, 2007, 06:50:24 am »

Quote
would the admin be so kind to puttung me in the correct section (howtos)

Moved as requested, except that I'm not an admin ;). I can create a new topic just fine in howto's, but that's probably because I am a moderator. The admins will have to take care of changing permissions, I can't do that.
Logged
Most music on my soundcloud page was arranged in programs running on VL.

ghartl1

  • Vectorite
  • ***
  • Posts: 379
Re: how tos..scale image in kde-contextmenue
« Reply #2 on: September 21, 2007, 08:35:43 am »

thanks....
Logged