Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

brighten differs from pre v1

オープン
#1,371 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, nodejs, typescript

調査の方向性

Jimp の brightness API から始め、Jimp 1.6.0 で報告された値を再現し、issue に記載されている v0.x の動作と比較します。-1 から 1 までの値がどのように解釈されるかを追跡し、fix が完了したときに、ゼロ、正の値、分数値が記載された期待される動作と一致することを確認します。

索引モデルが issue の本文から書いたものです。

説明

Has the parameter value definition changed from Jimp 0.x to 1.x?

Expected Behavior

Brightness with a value of 0 should not affect image like it did in v0.x
Brightness with a value of 1 should fully lighten an image like it did in v0.x
Brightness with a value of -1 should fully darken an image like it did in v0.x
Brightness with a value of -0.5 should half darken an image like it did in v0.x
Brightness with a value of 0.5 should half lighten an image like it did in v0.x

Using Jimp V0.x (using Node-RED to simplify testing)
image

Current Behavior

Brightness with a value of 0 in v1.6 behaves differently - it darkens the image
Brightness with a value of 1 in v1.6 behaves differently - it has little affect on the image
Brightness with a value of -1 correctly fully darkens an image like it did in v0.x
Brightness with a value of -0.5 in v1.6 behaves differently - it FULLY darkens the image
Brightness with a value of 0.5 in v1.6 behaves differently - it half darkens the image

image

Failure Information (for bugs)

Steps to Reproduce

Demonstrating -0.5 brightness
  1. load image
    1. image
  2. invert
    1. image2
  3. apply brightness -0.5
    1. image3
Demonstrating -0.0 brightness
  1. load image
    1. image
  2. invert
    1. image2
  3. apply brightness -0.0
    1. image3
Demonstrating 1.0 brightness
  1. load image
    1. image
  2. invert
    1. image2
  3. apply brightness 1.0
    1. image3

Context

  • Jimp Version: 1.6.0
  • Operating System: Win 11
  • Node version: 18

Failure Logs

主要言語
TypeScript
スター
14.7k
フォーク
777
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jimp-dev/jimp のほかの issue

jimp-dev/jimp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。