Merge pull request 'Fix heif converter being broken' (#55) from BordedDev/snek:bugfix/fix-pictures-again into main
Reviewed-on: retoor/snek#55
This commit is contained in:
commit
2fc18801a7
@ -3,7 +3,11 @@ import json
|
|||||||
import yaml
|
import yaml
|
||||||
import asyncio
|
import asyncio
|
||||||
import subprocess
|
import subprocess
|
||||||
import pty
|
try:
|
||||||
|
import pty
|
||||||
|
except Exception as ex:
|
||||||
|
print("You are not able to run a terminal. See error:")
|
||||||
|
print(ex)
|
||||||
import os
|
import os
|
||||||
|
|
||||||
class ComposeFileManager:
|
class ComposeFileManager:
|
||||||
|
@ -7,9 +7,11 @@ from os.path import isfile
|
|||||||
import aiofiles
|
import aiofiles
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
from pillow_heif import register_heif_opener
|
||||||
|
|
||||||
from snek.system.view import BaseView
|
from snek.system.view import BaseView
|
||||||
|
|
||||||
|
register_heif_opener()
|
||||||
|
|
||||||
class ChannelAttachmentView(BaseView):
|
class ChannelAttachmentView(BaseView):
|
||||||
async def get(self):
|
async def get(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user