{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":690377226,"defaultBranch":"main","name":"sd-webui-EasyPhoto","ownerLogin":"qiuyanxin","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-09-12T04:44:04.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/15001403?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1694493851.5344782","currentOid":""},"activityList":{"items":[{"before":"ec33ad0e872f580d43758796125fe22d3e9b8172","after":"b64ca8c3b030677a3817d241651c901081fbf2cb","ref":"refs/heads/main","pushedAt":"2023-09-13T08:32:06.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"qiuyanxin","name":"Yanxin Qiu","path":"/qiuyanxin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15001403?s=80&v=4"},"commit":{"message":"Simplify EXIF transpose\n\nreplace EXIF transpose method with ImageOps.exif_transpose method, below is the source code:\r\n\r\ndef exif_transpose(image, *, in_place=False):\r\n \"\"\"\r\n If an image has an EXIF Orientation tag, other than 1, transpose the image\r\n accordingly, and remove the orientation data.\r\n\r\n :param image: The image to transpose.\r\n :param in_place: Boolean. Keyword-only argument.\r\n If ``True``, the original image is modified in-place, and ``None`` is returned.\r\n If ``False`` (default), a new :py:class:`~PIL.Image.Image` object is returned\r\n with the transposition applied. If there is no transposition, a copy of the\r\n image will be returned.\r\n \"\"\"\r\n image_exif = image.getexif()\r\n orientation = image_exif.get(ExifTags.Base.Orientation)\r\n method = {\r\n 2: Image.Transpose.FLIP_LEFT_RIGHT,\r\n 3: Image.Transpose.ROTATE_180,\r\n 4: Image.Transpose.FLIP_TOP_BOTTOM,\r\n 5: Image.Transpose.TRANSPOSE,\r\n 6: Image.Transpose.ROTATE_270,\r\n 7: Image.Transpose.TRANSVERSE,\r\n 8: Image.Transpose.ROTATE_90,\r\n }.get(orientation)\r\n if method is not None:\r\n transposed_image = image.transpose(method)\r\n if in_place:\r\n image.im = transposed_image.im\r\n image.pyaccess = None\r\n image._size = transposed_image._size\r\n exif_image = image if in_place else transposed_image\r\n\r\n exif = exif_image.getexif()\r\n if ExifTags.Base.Orientation in exif:\r\n del exif[ExifTags.Base.Orientation]\r\n if \"exif\" in exif_image.info:\r\n exif_image.info[\"exif\"] = exif.tobytes()\r\n elif \"Raw profile type exif\" in exif_image.info:\r\n exif_image.info[\"Raw profile type exif\"] = exif.tobytes().hex()\r\n elif \"XML:com.adobe.xmp\" in exif_image.info:\r\n for pattern in (\r\n r'tiff:Orientation=\"([0-9])\"',\r\n r\"([0-9])\",\r\n ):\r\n exif_image.info[\"XML:com.adobe.xmp\"] = re.sub(\r\n pattern, \"\", exif_image.info[\"XML:com.adobe.xmp\"]\r\n )\r\n if not in_place:\r\n return transposed_image\r\n elif not in_place:\r\n return image.copy()","shortMessageHtmlLink":"Simplify EXIF transpose"}},{"before":"fbdcd5e7a290666290dd396d2987243dddd138c1","after":"ec33ad0e872f580d43758796125fe22d3e9b8172","ref":"refs/heads/main","pushedAt":"2023-09-13T08:23:54.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"qiuyanxin","name":"Yanxin Qiu","path":"/qiuyanxin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15001403?s=80&v=4"},"commit":{"message":"Update background restore & Auto search Lora when ids.txt is deleted (#72)\n\n* update background restore, delete ids.txt, update syspath in train_kohya\r\n* update qrcode\r\n* update comments and super resolution condition","shortMessageHtmlLink":"Update background restore & Auto search Lora when ids.txt is deleted (a…"}},{"before":"fbdcd5e7a290666290dd396d2987243dddd138c1","after":"2a1a599063212ce04af2cf9c5332dc7d3472decf","ref":"refs/heads/patch-2","pushedAt":"2023-09-12T05:32:04.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"qiuyanxin","name":"Yanxin Qiu","path":"/qiuyanxin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15001403?s=80&v=4"},"commit":{"message":"Update easyphoto_ui.py\n\nadd external ckpt list for those who start SDWebui with --ckpt-dir","shortMessageHtmlLink":"Update easyphoto_ui.py"}},{"before":"fbdcd5e7a290666290dd396d2987243dddd138c1","after":"734fece89f0796326d66dc02e549c9d59fc25940","ref":"refs/heads/patch-1","pushedAt":"2023-09-12T04:53:27.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"qiuyanxin","name":"Yanxin Qiu","path":"/qiuyanxin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15001403?s=80&v=4"},"commit":{"message":"Update easyphoto_ui.py\n\nadd sd models in external ckpt dir in the dropdown model list for users who start webui with --ckpt-dir argument","shortMessageHtmlLink":"Update easyphoto_ui.py"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyMy0wOS0xM1QwODozMjowNi4wMDAwMDBazwAAAAN_eluB","startCursor":"Y3Vyc29yOnYyOpK7MjAyMy0wOS0xM1QwODozMjowNi4wMDAwMDBazwAAAAN_eluB","endCursor":"Y3Vyc29yOnYyOpK7MjAyMy0wOS0xMlQwNDo1MzoyNy4wMDAwMDBazwAAAAN-bRFR"}},"title":"Activity · qiuyanxin/sd-webui-EasyPhoto"}