Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-08-24 07:58:08

johnywhy
Member
Registered: 2011-10-09
Posts: 288

gnome-screenshot missing from gsettings

This script says i should be able to change default gnome screenshot picture format with command:

gsettings set org.gnome.gnome-screenshot default-file-type jpg

https://github.com/erikdubois/Ultimate- … -as-jpg.sh

But i'm getting

No such schema “org.gnome.gnome-screenshot”

When i check dconf editor, indeed screenshot isn't listed.

How to fix?

THX

Last edited by johnywhy (2018-08-24 07:58:42)


arch xfce x86_64

Offline

#2 2018-08-24 16:26:18

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: gnome-screenshot missing from gsettings

Do you have gnome-screenshot installed? I don't, and get the same message as you do.

I don't use Mint, but I'd venture that the Xfce edition comes with xfce4-screenshooter and xfce4-screenshooter-plugin instead.

I think you can choose the format easily in the heavyweight Shutter, and with the appropiate command in scrot

But, what does this have to do with Xfce?

Last edited by alcornoqui (2018-08-24 16:26:45)

Offline

#3 2018-08-24 18:44:07

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: gnome-screenshot missing from gsettings

alcornoqui wrote:

I'd venture that the Xfce edition comes with xfce4-screenshooter

You're right. My mistake. I prefer xfce4-screenshooter cuz the built-in Imgur integration.

So it's not possible to set output format for xfce4-screenshooter?

I think you can choose the format easily in the heavyweight Shutter, and with the appropiate command in scrot

thx for that! Shutter is too fat for me-- 7MB download. Trying to make a slim OS.

i love how tiny scrot is, but do need a GUI (making this OS for normal people). i could use gscreenshot -- too bad building it requires 50 MB of python stuff (tho' i could remove all that after building). Too bad scrot has no imgur or other cloud integration.

what does this have to do with Xfce?

What does xfce4-screenshooter have to do with xfce?

Last edited by johnywhy (2018-08-24 18:51:09)


arch xfce x86_64

Offline

#4 2018-08-25 00:39:06

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: gnome-screenshot missing from gsettings

Hey johnywhy, I asked what it had to do with Xfce because you were asking about a script that said Linux Mint Cinnamon in the path, to tweak a Gnome program not installed by default in Xfce... while xfce4-screenshooter is an official component of Xfce, complete with panel plugin. But nevermind that.

On the issue: Why do you want to avoid PNGs? Of course there would be ways to convert the files "on the fly", out of my head I can think of using an alias for a command that calls xfce4-screenshooter and converts the file after the capture, but I'd only go that convoluted way if forced:

jpg_vs_png.png

source: https://www.labnol.org/software/tutoria … idth/5385/

PS: I have to admit that, although the joke's nice, there are good reasons for using jpeg for some captures: https://www.labnol.org/software/tutoria … ages/3917/

Offline

#5 2018-08-25 00:55:51

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: gnome-screenshot missing from gsettings

I think I shouldn't have to justify why I want one format or another. JPG vs PNG is off topic. This is about user preference. Are you arguing against user preference? Dictating which format I should use?

Usually when I take a screenshot, it's to post it on the web. Jpg is usually the preferred format for the web, cuz it's compressed. 

Ideally, could have imgur integration with any format. Ideally, as part of the UI, instead of having to edit a config file. But a config file would be better than current.

Last edited by johnywhy (2018-08-25 01:40:29)


arch xfce x86_64

Offline

#6 2018-08-25 01:20:48

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,492

Re: gnome-screenshot missing from gsettings

Unfortunately, png is currently hard-coded. There is this bug report with a patch that allows for saving in different formats, but it hasn't been committed yet.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#7 2018-08-25 01:31:43

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: gnome-screenshot missing from gsettings

Sheesh. Here's the code, go patch: https://bugzilla.xfce.org/show_bug.cgi?id=12122

I was just trying to help a fellow Xfce user, and I hope I did... cause I'm out of this thread.

Offline

#8 2018-08-25 01:38:53

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: gnome-screenshot missing from gsettings

ToZ, thx for that! Great to hear that's coming. I'll try the patch.

alcornoqui wrote:

I was just trying to help

PNG's and JPG's are both great formats, with different benefits for different purposes. Supporting user preference is best. Thx for link!

Last edited by johnywhy (2018-08-25 01:39:45)


arch xfce x86_64

Offline

#9 2018-08-25 12:14:44

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: gnome-screenshot missing from gsettings

johnywhy wrote:

I think I shouldn't have to justify why I want one format or another. JPG vs PNG is off topic. This is about user preference. Are you arguing against user preference? Dictating which format I should use?

I get the impression that it's more a case of someone trying to politely suggest that, occasionally, one's personal preference should be weighed against convenience and the relative effort associated with each option (or against reality, lol, whichever applies).

johnywhy wrote:

Usually when I take a screenshot, it's to post it on the web. Jpg is usually the preferred format for the web

I haven't had problems posting/uploading .PNG images for years. Although we probably do not inhabit the same virtual spaces wink

johnywhy wrote:

cuz it's compressed.

I didn't know one way or the other, so I just did a quick web search - and it turns out that the .PNG format supports lossless compression. This would appear to counter your argument. . . .

Either way, good luck with solving your issue (in whichever way you prefer to do so)!

Regards,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#10 2018-08-25 16:37:06

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: gnome-screenshot missing from gsettings

MountainDewManiac wrote:

one's personal preference should be weighed against convenience and the relative effort associated with each option

Sorry, didn't get your meaning. You mean, user effort? Having to convert the PNG to a JPG, and then manually upload to Imgur, is more effort.

You mean, development effort? Are you an xfce developer? If so, awesome! and thanks. Presumably, xfce devs are interested in user preferences. That's why there's an xfce wishlist.
https://wiki.xfce.org/wish_list

I agree that, if xfce4-screenshooter only offers ONE format, PNG is the better format to offer, since it's pixel perfect, and can be converted to any other format desired, with some extra effort. I'm not suggesting JPG be the one and only format offered, which is how you guys seem to be taking it. I'm saying it would be preferable to offer more than one format.

I haven't had problems posting/uploading .PNG images for years. Although we probably do not inhabit the same virtual spaces

i'm sure we don't. And we prolly don't use images for the same things. And we prolly don't use computers for the same things. Or, maybe i'm just stupid, and making everything up to be difficult. Is that what you think?

I didn't know one way or the other, so I just did a quick web search - and it turns out that the .PNG format supports lossless compression. This would appear to counter your argument. . . .

no offense, but since you didn't know to begin with, a "quick google search" doesn't necessarily make you an expert. I'm no expert either, but i've worked with image files for decades.

If your websearch was slightly less quick, you might have discovered the differences, benefits, and drawbacks of each. A debate about which format is "superior" is not a legitimate debate. Various formats serve various purposes.

"Because PNG is a lossless web format, file sizes tend to get very large. On the web, go with JPEG. For printing, you’d be better off with a JPEG."
https://99designs.com/blog/tips/image-file-types/#PNG

"Think of JPG as the default file format for uploading pictures"
https://www.pagecloud.com/blog/web-imag … gif-vs-svg

"You are likely to get larger files, but if image quality is more important than file size, PNG-24 is your best option."
https://www.sitepoint.com/gif-png-jpg-which-one-to-use/

You're right that PNG's support lossless compression. JPG's "lossy" compression is much more compressed. If you save a JPG in an image editor, you're usually given a "quality" option, which allows to set the amount of compression.

PNG's take longer to render, compared with JPG's. That's one of the tradeoffs of lossless. Where PNG's compress the pixels into tighter and tighter bundles with computational algorithms, JPG's just discard pixels to make the files smaller.
https://superuser.com/questions/845394/ … -parameter

"JPG: Small file size, Widely supported format, Compatibility.
PNG: More complex and larger image files can be large. Limited compatibility."
http://socialcompare.com/en/comparison/ … le-formats

"JPG Pros:
– high controlled degree of compression. The user independently selects the ratio quality/file size;
– small file size;
format is compatible and it is displayed correctly in any browsers, text and graphics programs, on all computers, tablets and mobile devices;"
https://www.logaster.com/blog/jpeg/

"each is designed to be used in specific circumstances based on your needs for image quality, file size, and more. On Instagram, Twitter, etc. your best bet is to use a JPEG. It’s smaller in size, it’s optimized for photography, and it’s widely supported across almost every platform and service imaginable."
https://www.digitaltrends.com/photography/jpeg-vs-png/

"There is data compression involved with PNG's, which allows you to retain a high-quality image. However, the size, although compressed, is still more than a JPEG image. JPEG is the most common file type which can be used online or for hard prints. Its lossy compression algorithm removes minute details that your eye is least likely to notice to save space. However, the compression ratio is adjustable so you can select the level of quality you want in your image."
https://www.photoup.net/differences-bet … -png-jpeg/

cheers

Last edited by johnywhy (2018-08-25 17:47:39)


arch xfce x86_64

Offline

#11 2018-08-25 18:14:10

MountainDewManiac
Member
From: Where Mr. Bankruptcy is Prez
Registered: 2013-03-24
Posts: 1,115

Re: gnome-screenshot missing from gsettings

I agree that there tends to be a difference in file sizes. And this was a big consideration back when the 20-megabyte hard drive I bought was thought to be large, cost me a paycheck, and 1200 baud modems were the cat's @ss. But--

Never mind. I never was good at dealing with obtuse angles. Or people either roll .

Good luck - with everything,
MDM


Mountain Dew Maniac

How to Ask for Help <=== Click on this link

Offline

#12 2018-08-25 19:46:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,492

Re: gnome-screenshot missing from gsettings

This really isn't the place to argue about JPG vs PNG.
Closing.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 621.88 KiB (Peak: 639.16 KiB) ]