Skip to content

Commit 40a1e5e

Browse files
authored
Merge pull request #6 from ArkieCoder/kittysupport
add more kitty support
2 parents a17a62a + 53f961c commit 40a1e5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/stringformat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def iterm2?
5050
if kitty?
5151
# Convert PDF to PNG for Kitty
5252
png_file = tmp_file.path.sub('.md', '.png')
53-
system("convert #{pdf_file} #{png_file} >/dev/null 2>&1")
53+
system("convert -density 600 #{pdf_file} #{png_file} >/dev/null 2>&1")
5454
if File.exist?(png_file)
5555
png_data = File.read(png_file)
5656
base64_data = Base64.strict_encode64(png_data)

0 commit comments

Comments
 (0)