浏览代码

Update readme with gif

Alex Tran 3 年之前
父节点
当前提交
e63dc49475
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 2 0
      README.md
  2. 1 0
      server/src/modules/image-optimize/image-optimize.processor.ts

+ 2 - 0
README.md

@@ -6,6 +6,8 @@
 
 
 Self-hosted photo and video backup solution directly from your mobile phone.
 Self-hosted photo and video backup solution directly from your mobile phone.
 
 
+![Current Stage](https://media.giphy.com/media/UcO3eQ1h6Bjm1Sqexd/giphy-downsized-large.gif)
+
 # Note
 # Note
 
 
 This project is under heavy development, there will be continous functions, features and api changes.
 This project is under heavy development, there will be continous functions, features and api changes.

+ 1 - 0
server/src/modules/image-optimize/image-optimize.processor.ts

@@ -42,6 +42,7 @@ export class ImageOptimizeProcessor {
         .toFile(resizePath, async (err, info) => {
         .toFile(resizePath, async (err, info) => {
           if (err) {
           if (err) {
             console.error('Error resizing file ', err);
             console.error('Error resizing file ', err);
+            return;
           }
           }
 
 
           await this.assetRepository.update(savedAsset, { resizePath: resizePath });
           await this.assetRepository.update(savedAsset, { resizePath: resizePath });