-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GIF exports #547
Comments
@V1NAY8 have you tried https://getkap.co/ for quickly creating a GIF? I don't think it would be feasible to create one from the browser, unless you have ideas 🙂 |
What would the advantage of a gif be compared to a png? A png can just as well be used in a README of a repo, or do you mean an animated gif? If so, what would you animate? |
Ah okay, I see what you mean. Do you mean something like https://asciinema.org ? If so, how should it be different? |
|
I'd like to add another perspective to GIF support. I make tutorial videos and I want them to be pretty. So, I'm thinking about using carbon when I show a piece of code. Although, having a window popping up animation would be great on that background which will produce either a GIF or a video file. |
I did a poor-mans approach to this on a fork carbon#feat/record-terminal-sesh using gif.js There's a record button next to the settings. Press that and then all the keystrokes will be recorded and then "replayed" once you stop recording. It's not polished. There are bugs and it is slow. It worked for my situation and lets me make pretty README gifs and twitter gifs, so I'm pretty stoked. If this were to get polished, the next steps would be:
The example below has been compressed. It was 11MB originally and then I went to ezgif.com and resized it so GH would lemme embed it. |
(Previous comment got deleted 😞) @JessicaSachs this is amazing! 🎉 So cool that you got this working! I had never heard of gif.js before If you would be up for it, I would absolutely love to help integrate this work into Carbon itself on my nights and weekends. Also happy to consult asynchronously if that works better 🙂I totally understand if you don't have the bandwidth — even if you pushed up a WIP PR rebased on master, that would be incredibly helpful. Finally, FWIW, I would be more than happy to merge this with only a working record feature. No need for line-highlighting or menu options for an initial version, IMO. I 🖤 the Carbon community! |
Carbon.now.sh use dom-to-image library to generate images and svg from any div (dom) , unfortunately gif export is not possible with this library. |
This is true, however as @JessicaSachs demonstrated above, it is possible to combine this with a GIF library to create them. I haven't had time to implement this feature, though. |
@mfix22 if I rebased, would you be able to take it over the line? |
@JessicaSachs unfortunately, I don't have much time for feature development at the moment 😞 If you rebased and pushed up a PR, that could be good so I can work on it steadily in the background, though. |
This is an interesting approach: https://www.animate-code.com/ |
Expected Behavior
An option to make GIF.
Example : For any repo that can show their work effectively in their README file such as installation instructions.
Actual Behavior
Browser:
Code Snippet (If Applicable)
The text was updated successfully, but these errors were encountered: