Browse Source

adjust height

ming 3 years ago
parent
commit
9d624b5395
2 changed files with 1 additions and 2 deletions
  1. 1 1
      OpenshotService/openshot_video_generator.py
  2. 0 1
      etc/Dockerfile

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -767,7 +767,7 @@ def anchor_video_v2(name_hash,name,text_content, image_urls,multiLang,avatar):
         img_list[idx] = openshot.FFmpegReader(dir_photo+name_hash+'/'+p)
         img_list[idx] = openshot.FFmpegReader(dir_photo+name_hash+'/'+p)
         img_list[idx].Open()
         img_list[idx].Open()
         photo_clip_list[idx] = video_photo_clip(vid=img_list[idx],layer=3
         photo_clip_list[idx] = video_photo_clip(vid=img_list[idx],layer=3
-                ,scale_x=0.8,scale_y=0.704,location_y=-0.03,position=main_timer,end=clip_duration,audio=False)
+                ,scale_x=0.8,scale_y=0.6825,location_y=-0.03,position=main_timer,end=clip_duration,audio=False)
         t.AddClip(photo_clip_list[idx])
         t.AddClip(photo_clip_list[idx])
         img_list[idx].Close()
         img_list[idx].Close()
 
 

+ 0 - 1
etc/Dockerfile

@@ -20,7 +20,6 @@ RUN pip3 install websocket
 RUN pip3 install websocket-client
 RUN pip3 install websocket-client
 RUN pip3 install dataset
 RUN pip3 install dataset
 RUN pip3 install aiofiles
 RUN pip3 install aiofiles
-EXPOSE 8022
 RUN apt-get install python3-openshot -y
 RUN apt-get install python3-openshot -y
 RUN apt-get install openshot-qt -y
 RUN apt-get install openshot-qt -y
 RUN apt install -y xvfb
 RUN apt install -y xvfb