JpegImageFormatDetector IsJfif and IsExif checks are not needed as IsJpeg is always true for valid JPEG files.
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 52/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- csharp
- Ambito
- computer-graphics
Direzione di ricerca
Start in src/ImageSharp/Formats/Jpeg/JpegImageFormatDetector.cs at the checks linked in the issue. Review the detector's JPEG validation logic and the surrounding tests, then confirm the redundant JFIF and Exif checks are no longer required while valid JPEG detection remains covered.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- I have written a descriptive issue title
- I have verified that I am running the latest version of ImageSharp
- I have verified if the problem exist in both
DEBUGandRELEASEmode - I have searched open and closed issues to ensure it has not already been reported
ImageSharp version
3.1.5
Other ImageSharp packages and versions
3.1.5
Environment (Operating system, version and so on)
Windows
.NET Framework version
.NET 8.0
Description
I was developing a new JPEG-LS (lossless jpeg) codec interop for ImageSharp as the build-in decoder doesn't support it.
I noticed a couple of issues during this development that I like to share. For easy tracking I have a separate report for each issue:
Every valid JPEG file starts with a SOI marker. The JpegImageFormatDetector.cs checks this but also checks if there is a Jfif application segment present or an Exif segment. These 2 checks are redundant as files with an Jfif or Exif segment will also start with a SOI marker.
Steps to Reproduce
N.A. checks are valid, just not really needed.
Images
No response
- Lingua principale
- C#
- Stelle
- 8k
- Fork
- 899
- Merge medio
- 1g 5h
- PR unite (30g)
- 7
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SixLabors/ImageSharp
-
needs triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
SixLabors/ImageSharp#3198 · 1 commento ·
-
Grayscale Icc profile color Apertabug metadata:icc
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
SixLabors/ImageSharp#3197 ·
-
needs triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
SixLabors/ImageSharp#3194 · 3 commenti ·
-
formats:exr
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
SixLabors/ImageSharp#3116 · 2 commenti · 1 reazione ·
-
CR2: System.NotSupportedException: Missing SOI marker offset for tiff with old jpeg compression Apertaneeds triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
SixLabors/ImageSharp#2665 · 2 commenti ·
Tutte le issue di SixLabors/ImageSharp
Issue simili
-
core dependencies
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
bug frontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Down / Waiting for removal
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100