Skip to content

Shrink images that are too large#145

Merged
CryZe merged 4 commits intomasterfrom
image-resizing
Sep 28, 2018
Merged

Shrink images that are too large#145
CryZe merged 4 commits intomasterfrom
image-resizing

Conversation

@CryZe
Copy link
Copy Markdown
Collaborator

@CryZe CryZe commented Sep 27, 2018

This is necessary eventually. However it also comes with a few downsides such as longer compile times, larger binary size and longer parsing times of splits due to the shrinking. This introduces the image-shrinking feature that allows you to choose whether you want to compile this in. It is activated by default. The plan is to introduce this to the original LiveSplit and Splits I/O before this lands in LiveSplit One, so that we can reduce the amount of actively used splits in the wild that still need to be shrunk once LiveSplit One gets the feature.

Closes #47

@CryZe CryZe added enhancement An improvement for livesplit-core. work in progress labels Sep 27, 2018
Copy link
Copy Markdown

@glacials glacials left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, what's the reason you want to delay releasing this into LiveSplit One until more splits in the wild are shrunk?


[features]
default = ["image-shrinking"]
image-shrinking = ["image/webp", "image/pnm", "image/ico", "image/jpeg", "image/gif_codec", "image/tiff", "image/tga", "image/bmp", "image/hdr"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should image/png be here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image/png is always compiled in, as we already reencode Llanfair's headerless bitmaps to png. So these are only those that are conditionally activated.

@CryZe
Copy link
Copy Markdown
Collaborator Author

CryZe commented Sep 27, 2018

It's fairly slow opening splits that have large images in them, so I'd prefer reducing the amount of yet to be resized images that are around. I think natively compiled it does the conversion a bit faster, and we want to do it there as soon as possible anyway, so I'd rather wait a bit.

@CryZe CryZe merged commit b905376 into master Sep 28, 2018
@CryZe CryZe deleted the image-resizing branch October 22, 2018 21:25
@CryZe CryZe added this to the v0.11 milestone Mar 17, 2019
@CryZe CryZe added the feature A new user visible feature for livesplit-core. label Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Image Resizing

2 participants