Sublime Forum

Sublime text image viewer

#1

Sublime text has an internal image viewer since build 3055 i guess, that was a big step forward, but since then it didn’t go any further:

  • restricted image type support (no gif animation, often can’t load image…)
  • no zoom support
  • image often don’t fit in the view (over zoomed)

A complete image viewer is a must-have feature in a text editor of the top league.

Upvote if you agree.

5 Likes

#2

I was going to troll with a comment in the exact same format but how smartphones should be bulletproof.
Effort, meh.

:thumbsdown:

0 Likes

#3

I can’t see what this has to do with smartphones beeing bullet-proof, these are simple tasks that are implemented in various editors, it’s not luxery to not interrupt my workflow and get out of ST to open an image.

1 Like

#4

Images have the default size when loading them. Are you sure you want to load images in a text editor and not an image viewer? There are so many more functionalities missing to use sublime text as an comfortable image viewer.

4 Likes

#5

any os has an image viewer, what i want is to improve the one built in ST so i wouldn’t have to use the os’s.

0 Likes

#6

The only feature here that I find reasonable would be resizing the image to fit into the current view. Maybe bind that to the word_wrap setting.

If you need more detailed functionality, it seems better to use an actual image viewer over ST’s built-in. It is not supposed to be a full-fledged viewer and just serves as a convenient method to peek into an image’s content. The developer time required to implement gif previews would be much better spent elsewhere.

3 Likes

#7

add to that zooming maybe with ctrl+scroll, (unless it’s difficult to implement),that would be sufficient for the time being, but gif preview shouldn’t be at the bottom of the developer’s checklist.

1 Like

#8

Why gifs though? I’d guess that it’s far from being a frequently used format among developers. What’s your typical scenario?

0 Likes

#9

gifs are used for readmes, so you can use them when working on a github repo without leaving sublime text, gif can be used in package control messages.
any way i’m not demanding it wright now, i’m just pointing that it’s not insignifcant and a total waste of the developer’s time, small features like this can drive some users to prefer another editor.

1 Like

#10

How do I strongly downvote this?

An image viewer in a text editor is a bad idea. An image viewer in a text editor that doesn’t allow the user to disable it and view the image as text is an absolutely terrible idea and breaks the editor.

Remove the image viewer. There’s numerous free and vastly superior image viewers designed for viewing images. Sublime Text is supposed to be a text editor, and this feature is preventing me from using it as a text editor.

0 Likes

#11

In most cases, when you’re coding, there are images involved within your solution and in many ways, using external viewers can lead to mistakes. Also some project managers use images for UI designs, workflows and other documentation, so it’s important to include versatile image viewers within your IDE. Other editors like Phoenix Code or Visual Studio Code have such features.

0 Likes

#12

I don’t get it. How is this feature preventing you from using Sublime Text as a text editor?
Is it causing some problem?
What about an option to show images within Sublime Text?

0 Likes