d2phap / d2phap/ImageGlass

Rotating a HEIC image causes it to change file size from about 2.5MB to 48.7MB (48,771,210 bytes)

Open
#656 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🛠 improvement
Dominant language
C#
Stars
14.4k
Forks
752
Avg merge
10d 14h
Merged PRs (30d)
1

Description

System info:
  • ImageGlass version: 7.07.26
  • OS version: 10.0.18362 Build 18362
Expected behavior:

Rotating a ~2.5 MB HEIC file in ImageGlass, allowing it to save the changes should result in a file that is about the same size (2.5MB).

Actual behavior:

Rotating a ~2.5 MB HEIC image and allowing ImageGlass to save it, will create a HEIC image that is 48,711,210 Bytes in size

Steps to reproduce:
  1. Take a picture with an iPhone. I used an iPhone 11 Pro running iOS 13.2.3
  2. Import the picture to your PC, note the file size.
  3. View in ImageGlass, rotate the picture, move to the next picture (to save the picture).
  4. Examine the file size change.
Other info:

Interesting the files, regardless of their initial size, yield files always exactly the same size.

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 reproducing the issue in ImageGlass with an iPhone HEIC image, following the listed rotation and save steps, and compare the original and saved sizes. No source file or test is named; trace the rotation-save path and verify that saving a rotated HEIC does not inflate a roughly 2.5 MB file to about 48.7 MB.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.