beforeRunningCommand nop command #!/usr/bin/env php <?php $path = getenv('TM_DROPPED_FILE'); $path_parts = pathinfo($path); $info = getimagesize($path); list($width, $height) = $info; $mime = $info['mime']; $contents = base64_encode(file_get_contents($path)); echo "@gfx-{$path_parts['filename']}: \"data:{$mime};base64,{$contents}\";\n"; echo "@gfx-{$path_parts['filename']}-width: {$width}px;\n"; echo "@gfx-{$path_parts['filename']}-height: {$height}px;"; draggedFileExtensions png jpeg jpg gif input selection name Insert inline Image output insertAsSnippet scope source.css.less uuid 7B0CA307-CC1C-4EE2-9F63-4825800ACDA7