openframeworks / openframeworks/openFrameworks

deprecate ofBufferToFile() procedural style loaders and savers

Open
#1,559 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

code-review core feature section-internals
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

ofBufferToFile
ofBufferFromFile
ofLoadImage
ofSaveImage etc.

https://github.com/openframeworks/openFrameworks/blob/develop/libs/openFrameworks/utils/ofFileUtils.h#L54

Lets discuss better options for loading and saving ofBuffer, ofTexture, ofImage, ofPixels.
Suspect that the c-style methods are not being used / don't feel intuitive.

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 with libs/openFrameworks/utils/ofFileUtils.h around the referenced declarations for ofBufferToFile, ofBufferFromFile, ofLoadImage, and ofSaveImage. Read the issue discussion to understand the proposed alternatives for loading and saving ofBuffer, ofTexture, ofImage, and ofPixels. This is done only after a replacement API and deprecation scope are agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.