processing / processing/p5.js

p5.Graphics.saveGif()

Open
#6,079 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Image Feature Request
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Increasing Access

Unsure

Most appropriate sub-area of p5.js?
  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build Process
  • Unit Testing
  • Internalization
  • Friendly Errors
  • Other (specify if possible)
Feature request details

Hi!

I think it would be super useful to be able to use p5.Graphics objects as a source to saveGif function. It is a quite common scenario when the actual representation on the screen has a different size, than the required export size. For static pictures p5.Graphics.save() was always a solution, and I think it would be consistent to have p5.Graphics.saveGif() as well

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing saveGif function and the p5.Graphics.save implementation. Trace how each receives its source and handles export dimensions, then determine the matching behavior for p5.Graphics.saveGif(). Done means a p5.Graphics object can be used as the source for GIF export, including a size different from the displayed canvas.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.