forked from rDrama/rDrama
fix ./magick: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.10: cannot open shared object file: No such file or directory
parent
29876efcca
commit
4d1b00d780
|
@ -40,6 +40,8 @@ RUN rm /etc/nginx/sites-available -r
|
|||
RUN rm /etc/nginx/sites-enabled/default
|
||||
RUN mkdir /etc/nginx/includes
|
||||
|
||||
RUN t=$(mktemp) && wget 'https://dist.1-2.dev/imei.sh' -qO "$t" && bash "$t" && rm "$t"
|
||||
|
||||
EXPOSE 80/tcp
|
||||
|
||||
CMD [ "/usr/bin/supervisord", "-c", "/rDrama/supervisord.conf" ]
|
||||
|
|
|
@ -195,7 +195,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in
|
|||
try:
|
||||
with Image.open(filename) as i:
|
||||
oldformat = i.format
|
||||
params = ["./magick"]
|
||||
params = ["magick"]
|
||||
if resize == 99: params.append(f"{filename}[0]")
|
||||
else: params.append(filename)
|
||||
params.extend(["-coalesce", "-quality", "88", "-strip", "-auto-orient"])
|
||||
|
|
Loading…
Reference in New Issue