diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 8adab23..883953c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -30,9 +30,6 @@ jobs: - name: build all files for the device run: cd Bootup\ Logos && ./run.sh /tmp/${{ matrix.model }}/ ${{matrix.args}} - - name: build all files for the device Flipped - run: cd Bootup\ Logos && ./run.sh /tmp/${{ matrix.model }}/ ${{matrix.args}} -r - - name: build logo erase file run: cd Bootup\ Logos && python3 img2logo.py -E erase_stored_image /tmp/${{ matrix.model }}/ ${{matrix.args}} diff --git a/Bootup Logos/img2logo.py b/Bootup Logos/img2logo.py index 9f9adb0..012bb19 100755 --- a/Bootup Logos/img2logo.py +++ b/Bootup Logos/img2logo.py @@ -219,7 +219,7 @@ def img2hex( except BaseException as e: raise IOError('error reading image file "{}": {}'.format(input_filename, e)) if flip: - image.rotate(180) + image = image.rotate(180) if getattr(image, "is_animated", False): data = animated_image_to_bytes(image, negative, dither, threshold) @@ -281,12 +281,6 @@ def parse_commandline(): help="photo negative: exchange black and white in output", ) - parser.add_argument( - "-r", - "--rotate", - action="store_true", - help="Rotate image to be upside down; for left handed setups", - ) parser.add_argument( "-t", @@ -336,7 +330,7 @@ if __name__ == "__main__": sys.exit(1) print(f"Converting {args.input_filename} => {args.output_filename}") - + img2hex( input_filename=args.input_filename, output_filename_base=args.output_filename, @@ -346,5 +340,17 @@ if __name__ == "__main__": negative=args.negative, make_erase_image=args.erase, isPinecil=args.pinecil, - flip = args.rotate, + flip = False, + ) + + img2hex( + input_filename=args.input_filename, + output_filename_base=args.output_filename, + preview_filename=args.preview, + threshold=args.threshold, + dither=args.dither, + negative=args.negative, + make_erase_image=args.erase, + isPinecil=args.pinecil, + flip = True, )