Comments (4)
I'm looking for/suggesting a feature to maintain the window size and shrink* the image to fit and fill the surrounding with transparent space (which is controlled by --background-pattern
).
- There are two ways in my mind to address this. either always "scale to fit", so that also smaller images get enlarged, or "scale large to fit" to only reduce the size of images that does not entirely fit into the window dimension, but does not enlarge the smaller images. I personally prefer the "scale large to fit".
from pqiv.
set_scale_mode_fit_px
is supposed to provide this feature. I don't understand what exactly doesn't work. Could you elaborate?
from pqiv.
Thanks for the response and sorry for the delay in my response :)
To demo what I mean, I downloaded all the CC0 images from the first page of the following URL:
https://wordpress.org/openverse/search/image?q=software&license=cc0&extension=png
and ran pqiv --action "set_scale_mode_fit_px(100, 200)" ./Pictures/test_pqiv/*.png
. The expected behavior is to have a 100x200 pixel window with persistent dimension, but what we get is a dynamically changing window dimension:
Peek.2022-04-21.13-38.mp4
from pqiv.
Ah. pqiv still maintains the aspect ratio of the image and resize the window accordingly to fit within the bounding box specified by the parameter.
What's your expected behavior in case the aspect ratio doesn't fit?
from pqiv.
Related Issues (20)
- Control content of info box HOT 1
- Fix deprecation warnings HOT 1
- How can I bind a key to move file to a particular folder? HOT 1
- [bug] Sorting by name does not work if input is a directory HOT 2
- Use Command Output as Action Parameter HOT 1
- Release 2.13 HOT 10
- pqiv-2.12, SIGSEGV in bostree_node_count HOT 6
- pqiv doesn't play videos — missing libav.. libraries the reason? HOT 1
- output path of marked images in montage mode HOT 5
- pqiv craches viewing avif images
- --browse breaks file browsers in 2.13
- Scaling for initial image is sometimes incorrect HOT 5
- how to setting no info window at startup etc. HOT 2
- Proper color management with ICC profiles HOT 3
- Montage: previews don't scale up on HiDPI screen in KDE, spill beyond display borders
- pqiv plays video files, how to stop it? HOT 1
- Feature request: Add a command line option to ignore input events?
- Wrong interpretation of Adobe RGB colorspace HOT 1
- MONTAGE : List of marked files not passed to command in new terminal HOT 2
- Zoom without resizing window?
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 pqiv.