liamcain / AutoFileName

Sublime Text plugin that autocompletes filenames
514 stars 78 forks source link

Wrong width/height for jpg ( ST3 ) #37

Closed pustovalov closed 10 years ago

pustovalov commented 11 years ago

HTML: 1

when you choose any jpeg, you get:

<img src="images/bg_header.jpg" height="-1" width="-1" alt="">

CSS: 2

For css show width/height may not be important but it is very convenient, you can see from ST what size image.

liamcain commented 11 years ago

This is a known issue. When Sublime Text made the switch from Python 2 to Python 3, the script I was using to get the image dimensions broke. I was able to fix it for pngs and gifs but jpgs remain broken. For anyone who wants to help, the issue is commented out here.

matthacksteiner commented 11 years ago

any news on this? thanks...

zslabs commented 10 years ago

Really missin this in the ST3 version - wish I could help troubleshoot, but Python isn't my thang ;)

manafire commented 10 years ago

Added JPG dimensioning: https://github.com/BoundInCode/AutoFileName/pull/47

liamcain commented 10 years ago

Fixed in #47.