processing / processing/p5.js

returnBlobOnly parameter in saveGif function

Open
#6,746 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Adding returnBlobOnly boolean parameter on saveGif function.

This feature will give ability to render a gif and keep the blob in memory, instead of downloading it directly in the browser.

.

Example use cases:

  • Save the blob to the database/storage
  • Split the render and download process so that the user can download the rendered gif at a later time via a different interaction
  • Display the blob in an image tag (instead of canvas, which can't be saved to desktop with right click)

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 at the saveGif function entry point and review how it currently renders and downloads GIFs in the browser. Implement the requested returnBlobOnly behavior so callers can retain the rendered blob without an immediate download, while preserving the existing download behavior when the parameter is not enabled.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.