Plasma secrets: Remove shadows in screenshots

Discussion in 'all things UNIX' started by Mrkvonic, Nov 15, 2017.

  1. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    9,020
    Screenshots without shadows. Like Doctors Without Borders, only far less important. I've written this short tutorial explaining how to take screenshots of windowed applications in the Plasma desktop without any shadows or border transparency, including theme edits, compositing, GIMP and Gnome screenshot alternatives, some other tips and tricks, and more. Enjoy.

    https://www.dedoimedo.com/computers/plasma-screenshots-shadows.html


    Cheers,
    Mrk
     
  2. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,215
    I use gnome-screenshot on Kubuntu 16.04 like this:

    Code:
    Name=WholeScreen GSS
    CommandURL=gnome-screenshot -p -f /home/vasa1/Dropbox/Screenshots/"GS$(date +%Y%m%d%H%M%S)".png
    Key=Meta+Ctrl+W
    
    Name=Active GSS
    CommandURL=gnome-screenshot -wp -f /home/vasa1/Dropbox/Screenshots/"GS$(date +%Y%m%d%H%M%S)".png
    Key=Meta+Ctrl+A
    
    Name=Delayed GSS
    CommandURL=gnome-screenshot -p -d 10 -f /home/vasa1/Dropbox/Screenshots/"GS$(date +%Y%m%d%H%M%S)".png
    Key=Meta+Ctrl+D
    
    Name=Interactive GSS
    CommandURL=gnome-screenshot -a -f /home/vasa1/Dropbox/Screenshots/"GS$(date +%Y%m%d%H%M%S)".png
    Key=Meta+Ctrl+I
     
  3. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    1,636
    Location:
    the Netherlands
    Last edited: Nov 16, 2017
  4. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    9,020
    Not yet, I hope they release a togglable feature soon.
    Mrk
     
  5. Stupendous Man

    Stupendous Man Registered Member

    Joined:
    Aug 1, 2010
    Posts:
    1,636
    Location:
    the Netherlands
    Ow, pity.
    Yes, let's hope so.
    Thanks, Mrk.
     
  6. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,707
    Location:
    George, S.Africa
    Funny, I've never come across this with Spectacle. Works perfectly here on Kubuntu 16.04 with Naked theme.
     
  7. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    9,020
    I did mention themes can affect this - also do you use compositing?
    Mrk
     
  8. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,707
    Location:
    George, S.Africa
    Yes, I do. Check screenshot - there is no solid black border.

    Screenshot_20171116_180333.png

    Spectacle.png
     
    Last edited: Nov 16, 2017
  9. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    9,020
    But there's no window border - what if you do take window borders also.
    Mrk
     
  10. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,707
    Location:
    George, S.Africa
    Ok, here with window borders..

    Screenshot_20171116_182106.png
     
  11. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    9,020
    So you do have a significant transparency area around the window borders.
    Mrk
     
  12. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,707
    Location:
    George, S.Africa
    Actually you are correct, I didn't notice because I usually select 'rectangular region'. If I select 'active window' there is a narrow transparent border, but being transparent it is not shown when pasting for example in an email.
    If I select 'rectangular' region there are no borders, transparent or otherwise.
     
  13. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    9,020
    Well, hopefully, they will fix it and give us a switch.
    Mrk
     
Loading...