Comments (5)
Currently there is no way to set the jpg quality in maim, and digging through imlib2's source code reveals that jpg saves at 75 quality by default.
To set the quality myself I have to use a function not described in the Imlib2 documentation:
void __imlib_AttachTag(ImlibImage * im, const char *key,
int val, void *data,
ImlibDataDestructorFunction destructor);
I'll do some testing to get it to work, but a work-around you can use now is just save a png and convert it to a jpg using ImageMagick/Gimp/etc using the settings you desire.
Sorry for the inconvenience, and thanks!
from maim.
thanks for the concerning. i choosed jpg because of the speed and that i
was unable to use pnm formated image from maim in convert utility, convert
did said that there was something wrong with the image if it was in pnm or
bmp formats. similiar problem was when i tried to open an image in gimp or
pinta. command used was looking like: maim -g 100x100+100+100 image.pnm.
jpeg worked fine with an exeption of default image quality setting ~ 75%
2016-01-01 3:09 GMT+06:00 Dalton Nell [email protected]:
Currently there is no way to set the jpg quality in maim, and digging
through imlib2's source code reveals that jpg save at a 75 quality by
default.To set the quality myself I have to use a function not described in the
Imlib2 documentation:void __imlib_AttachTag(ImlibImage * im, const char *key,
int val, void *data,
ImlibDataDestructorFunction destructor);I'll do some testing to get it to work, but a work-around you can use now
is just save a png and convert it to a jpg using ImageMagick/Gimp/etc using
the settings you desire.
Sorry for the inconvenience, and thanks!—
Reply to this email directly or view it on GitHub
#55 (comment).
from maim.
It should be maim -g 100x100+100+100 image.png
I don't believe pnm is a format.
from maim.
yes pnm is a format. much like bmp, pnm is a bit map. and no the command i
typed was a command i wish to use, it was not a mistype. png is too slow,
0.5 sec to save. the delay is unsatifying. comparing to jpeg's 0.05 sec.
ten times less is fine ratio by me.
well no problem, the tool is free in any way. thanx for chatting.
2016-01-08 15:10 GMT+06:00 Dalton Nell [email protected]:
It should be maim -g 100x100+100+100 image.png I don't believe pnm is a
format.—
Reply to this email directly or view it on GitHub
#55 (comment).
from maim.
Done: 626b9dd
from maim.
Related Issues (20)
- Image corruption HOT 6
- Add support for `-` filename syntax HOT 1
- maim builds without libICE and libSM HOT 8
- Parser of maim for image names work incorrectly HOT 3
- New Fedora package maintainer HOT 4
- Screen freezes for a bit whenever i use maim HOT 3
- No screenshots when invoked via custom keyboard shortcut on Gnome HOT 4
- How to copy screenshot to selection and also download the screenshot in one command? HOT 2
- Save and copy to clipboard
- Support for high refresh rate monitors HOT 1
- `maim -s` prints help, requires filename HOT 2
- maim does not capture video image - rpi4
- Adjust the selection area before taking a screenshot HOT 2
- Improving accuracy: magnifier, crosshairs, pixel values, resizable selection HOT 1
- Can't screenshot selection when focused on dropdown menu (Couldn't grab the mouse after 10 tries.)
- glitches HOT 2
- maim doesn't work while dmenu is already active HOT 2
- [Feature Request] Provide an option to capture the last selected region
- `maim -s` captures the selection while it's still blurred (with picom enabled)
- New release with latest additions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maim.