Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Support ICO files in image preview #7017

Closed
Denisov21 opened this issue Feb 27, 2014 · 14 comments
Closed

Support ICO files in image preview #7017

Denisov21 opened this issue Feb 27, 2014 · 14 comments

Comments

@Denisov21
Copy link
Contributor

I would like Brackets could also view the *. ICO, as similar with *.JPG files.
I'd like to see a preview of the ICO file on Brackets. I thought to see this image. As regards the actual size on the screen is not interested, I thought you could only see the larger image. I hope someone can implement this feature. Currently I do not know Javascript API that can do this!
1catt1

@Denisov21
Copy link
Contributor Author

Can you merge this #7018? Thank you. Sorry for error!!

@peterflynn
Copy link
Member

If we only want to show the largest size in the ICO file, this is probably a 'starter bug' because the browser preview seems to select the largest size automatically.

I'd be concerned though that that's not very useful functionality for most people -- typically ICO files contain multiple sizes, with the largest size being one of the least frequently used. Showing all the sizes would be a big 'move to backlog' since it would require parsing the ICO binary.

@peterflynn
Copy link
Member

@marcelgerber
Copy link
Contributor

@peterflynn I'd suggest to first implement showing just the largest one - that's at least better than nothing.
We can add more functionality later on.

@peterflynn
Copy link
Member

Fair enough. Marking 'starter bug' for someone to just add .ico to the image file type list and see how well it works!

@marcelgerber
Copy link
Contributor

It works. Should we do unit tests or show a hint (only the biggest icon of the .ico is shown. There may be other ones included.)?

@peterflynn
Copy link
Member

We don't have unit tests for any of the other ImageViewer stuff, so probably no tests needed for now (unless you want to write a bunch of them :-)

I like the idea of adding a label explaining the size caveat (although I'd maybe say "largest" instead of "biggest"). @larz0 any thoughts on label placement, wording, etc.?

@larz0
Copy link
Member

larz0 commented Feb 28, 2014

@peterflynn @SAplayer for the format we could try "256 × 256 pixels (largest) — 700 KB"

@peterflynn
Copy link
Member

Cleaned up title (was "New wish in Brackets, open file ICO")

@marcelgerber
Copy link
Contributor

@Denisov21 The PR has been merged and you can view .ico files in the next release (Sprint 38).

@Denisov21
Copy link
Contributor Author

Ok, thank you guys.

@Denisov21
Copy link
Contributor Author

@SAplayer Thank you, can I close it?

@marcelgerber
Copy link
Contributor

I think so, yes.

@TomMalbran
Copy link
Contributor

Closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants