By default, spectacle saves my images as .tiff (in order to save them using a format which uses lossless compression and includes more metadata than .png by default). However, I frequently want to copy these screenshots as .png files for websites like Discourse.
I don’t seem to be able to do this without first having to save the image as .png, after which I’m able to use “Copy” to copy it to the clipboard as whatever I saved it as (.png). Is there a way to skip this step – a “Copy as”?
Hey there @rokejulianlockhart
Open Spectacle goto Configure > Save
from there is the filename option, on the right hand side of that there is a box with a V choices of save formats.
click on that there, there is a choice of 32 different formats to chose from.
That can be changed anytime needing different format.
Is that what is you looking for ?
Hope this helps.
…all I want to do is be able to save a captured image’s content (I believe that’s what you refer to by “pixmap”, certainly not its path) in a format different to the default configured in spectacle’s Preferences page without having to save it as a different file type first (after which it indeed allows me to do so, albeit solely as the file type I saved it as last).
Xclip could probably do it. You’d have to add an xclip command to the spectacle application. An example with scrot would be something like: scrot -e ‘xclip -selection clipboard -t image/png -i $f’. Dunno if it’d work with spectacle ( as in : spectacle -bc) though.
Like I said, if you find the correct command, you can add it to the application itself as a desktop entry. Something like: spectacle -bc ‘xclip -selection clipboard -t image/png -i $f’
Dunno, worth a try.
Save to clipboard as a certain file type could be nice or a script that sets “paste pinboard stuff” to a fixed file type would also be nice of course.
Like the post said, he doesn’t want to set it as whatever file type and change it every time he needs it in a different format.
A shortcut. Sure, make an application ( spectacle, maim, scrot…whatever)and create a shortcut for it. If you want it in the spectacle menu ( beware though, spectacle can have hickups with the pinboard format, that’s why I mentioned other simple tools) and add the desktop action to the application.