Comments (3)
Hey, the osx stuff was contributed. But I'm guessing it has something to do with this line
Line 125 in 7891048
from ttygif.
Yes, it has to do with retina (2x pixels). Run the recording in a non-retina display.
from ttygif.
Also an issue when using eg iTerm2 where the crop size does not match Apple window frame anyway. And, further, if the terminal session exists within a window that contains more than just the single session (for example, a multi-tab session), then the cropping will also fail.
To fix properly, will probably need to make the crop dimensions of the line mentioned by @icholy dependent on the amount of visible characters. This will be terminal emulator specific. Could grab total window height with something like osascript -so -e 'tell app \"%s\" to bounds of current window' | awk 'print {$4-$2}'
and compare with number of visible rows for the session, eg tput lines
, tput cols
or stty size
. However, I'm not sure how to go about retrieving the pixel size of the emulated character (even for specifically within iTerm2) to perform the conversion that would calculate the appropriate amount of cropping.
from ttygif.
Related Issues (20)
- Add animated WebP support
- STREAMS (stropts.h) is now obselete in libc 2.30 &> HOT 1
- On MacOS 10.15, Screencapture makes constant sounds
- New release for latest changes? HOT 1
- Can't create . because there's already a non-empty directory . existing in path. HOT 1
- ttygif does not convert xwd files to a merged animated gif file in Slackware64 14.2
- Update version in Makefile?
- Low performance, High disk usage. HOT 1
- ttygif doesn't create gif (MacOS Monterey) HOT 1
- System beeps for every character during playback
- Error of failed request: Badcolor (invalid Colormap parameter)
- Not working after updating
- Erorr when try to convert to gif
- Add SECURITY.md HOT 1
- Install fail debian jessie stock HOT 4
- failed to execute: convert -loop 0 HOT 3
- Doesn't work on Wayland HOT 5
- https:storage.googleapis.com HOT 1
- Failed creating new xdo instance HOT 1
- too many images an issue HOT 4
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 ttygif.