From e05a96700f7247040a14b221b077510cbf53ecbb Mon Sep 17 00:00:00 2001 From: Bill Lau <656860993@qq.com> Date: Thu, 9 Jan 2025 17:09:51 +0800 Subject: [PATCH 1/6] fix bug:unexpected EOF while looking for matching `"' --- .github/workflows/convert_tool.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/convert_tool.yaml b/.github/workflows/convert_tool.yaml index de5abde..5b6cbf7 100644 --- a/.github/workflows/convert_tool.yaml +++ b/.github/workflows/convert_tool.yaml @@ -20,7 +20,7 @@ jobs: - name: Build archive shell: bash run: > - staging="jxl_file-${{ github.event.release.tag_name }} + staging="jxl_file-${{ github.event.release.tag_name }}" mkdir "$staging" From 54954a28af477288c5ddadb31c02f9c479432da2 Mon Sep 17 00:00:00 2001 From: Bill Lau <656860993@qq.com> Date: Thu, 9 Jan 2025 17:29:08 +0800 Subject: [PATCH 2/6] write README.md --- README.md | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 52412d7..dbefc18 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,41 @@ # jpeg_xl_convert_tool -Convert 'view.jpeg' to 'view.jxl' online tool +Convert 'view.jpg' to 'view.jxl' online tool + +## How to Use + +### 1. Fork this Repository +To fork this repository, follow these steps: +1. Navigate to the repository page on GitHub. +2. Click the "Fork" button in the upper right corner of the page. +3. Select your GitHub account to create the fork. + +### 2. Set Up `WITH_GITHUB_TOKEN` Action Secret +To set up the `WITH_GITHUB_TOKEN` action secret in GitHub: +1. Go to the repository page on GitHub. +2. Click on the "Settings" tab. +3. In the left sidebar, click on "Secrets and variables" and then "Actions". +4. Click the "New repository secret" button. +5. Name the secret `WITH_GITHUB_TOKEN` and paste your GitHub token in the "Value" field. +6. Click "Add secret". + +### 3. Modify and Push Image +To modify the image name and push it to GitHub: +1. Rename your JPEG image to `view.jpg`. +2. Place the `view.jpg` file in the `img` folder of the repository. +3. Commit and push the changes to your forked repository: + ```sh + git add img/view.jpg + git commit -m "Add view.jpg to img folder" + git push origin main + ``` + +### 4. Create and Publish a Release +To create and publish a release on GitHub: +1. Go to the repository page on GitHub. +2. Click on the "Releases" tab. +3. Click the "Draft a new release" button. +4. Fill in the "Tag version" and "Release title" fields. +5. Click the "Publish release" button. + +### 5. Wait for GitHub Action to Complete +After publishing the release, wait for the GitHub Action to complete. Once done, you will find the `jxl_file-${release_tag_name}.tar.gz` file containing the converted `.jxl` file on the release page created in step 4. \ No newline at end of file From b97c71a5fc64207a69d489bcec41517c4123a08e Mon Sep 17 00:00:00 2001 From: Bill Lau <656860993@qq.com> Date: Thu, 9 Jan 2025 17:32:43 +0800 Subject: [PATCH 3/6] upload example picture --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dbefc18..dd9c073 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # jpeg_xl_convert_tool -Convert 'view.jpg' to 'view.jxl' online tool +Convert 'view.jpg' to 'view.jxl' tool +![Xnip2025-01-09_17-31-17](https://github.com/user-attachments/assets/b5d853ed-74fb-4bae-9231-a9a0fde95bb3) + ## How to Use @@ -38,4 +40,4 @@ To create and publish a release on GitHub: 5. Click the "Publish release" button. ### 5. Wait for GitHub Action to Complete -After publishing the release, wait for the GitHub Action to complete. Once done, you will find the `jxl_file-${release_tag_name}.tar.gz` file containing the converted `.jxl` file on the release page created in step 4. \ No newline at end of file +After publishing the release, wait for the GitHub Action to complete. Once done, you will find the `jxl_file-${release_tag_name}.tar.gz` file containing the converted `.jxl` file on the release page created in step 4. From a9914a2e1bac781c84d7fd3879035a67069e18f2 Mon Sep 17 00:00:00 2001 From: Bill Lau <656860993@qq.com> Date: Thu, 9 Jan 2025 17:52:46 +0800 Subject: [PATCH 4/6] add create github token step --- README.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dd9c073..3fef30e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ Convert 'view.jpg' to 'view.jxl' tool ![Xnip2025-01-09_17-31-17](https://github.com/user-attachments/assets/b5d853ed-74fb-4bae-9231-a9a0fde95bb3) - ## How to Use ### 1. Fork this Repository @@ -11,7 +10,19 @@ To fork this repository, follow these steps: 2. Click the "Fork" button in the upper right corner of the page. 3. Select your GitHub account to create the fork. -### 2. Set Up `WITH_GITHUB_TOKEN` Action Secret +### 2 Create a GitHub Token +To create a GitHub token, follow these steps: +1. Go to GitHub and log in to your account. +2. Click on your profile picture in the upper right corner and select "Settings". +3. In the left sidebar, click on "Developer settings". +4. Click on "Personal access tokens" and then "Tokens (classic)". +5. Click the "Generate new token" button. +6. Fill in the "Note" field with a descriptive name for the token. +7. Select the scopes or permissions you need for the token. +8. Click the "Generate token" button. +9. Copy the generated token and save it in a secure place. + +### 3 Set Up `WITH_GITHUB_TOKEN` Action Secret To set up the `WITH_GITHUB_TOKEN` action secret in GitHub: 1. Go to the repository page on GitHub. 2. Click on the "Settings" tab. @@ -20,7 +31,7 @@ To set up the `WITH_GITHUB_TOKEN` action secret in GitHub: 5. Name the secret `WITH_GITHUB_TOKEN` and paste your GitHub token in the "Value" field. 6. Click "Add secret". -### 3. Modify and Push Image +### 4. Modify and Push Image To modify the image name and push it to GitHub: 1. Rename your JPEG image to `view.jpg`. 2. Place the `view.jpg` file in the `img` folder of the repository. @@ -31,7 +42,7 @@ To modify the image name and push it to GitHub: git push origin main ``` -### 4. Create and Publish a Release +### 5. Create and Publish a Release To create and publish a release on GitHub: 1. Go to the repository page on GitHub. 2. Click on the "Releases" tab. @@ -39,5 +50,5 @@ To create and publish a release on GitHub: 4. Fill in the "Tag version" and "Release title" fields. 5. Click the "Publish release" button. -### 5. Wait for GitHub Action to Complete +### 6. Wait for GitHub Action to Complete After publishing the release, wait for the GitHub Action to complete. Once done, you will find the `jxl_file-${release_tag_name}.tar.gz` file containing the converted `.jxl` file on the release page created in step 4. From 2fef3e32c87b897ebea7310e66cb1f01aab8b855 Mon Sep 17 00:00:00 2001 From: Bill Lau <656860993@qq.com> Date: Thu, 9 Jan 2025 17:53:35 +0800 Subject: [PATCH 5/6] fix typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fef30e..90e09e4 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ To fork this repository, follow these steps: 2. Click the "Fork" button in the upper right corner of the page. 3. Select your GitHub account to create the fork. -### 2 Create a GitHub Token +### 2. Create a GitHub Token To create a GitHub token, follow these steps: 1. Go to GitHub and log in to your account. 2. Click on your profile picture in the upper right corner and select "Settings". @@ -22,7 +22,7 @@ To create a GitHub token, follow these steps: 8. Click the "Generate token" button. 9. Copy the generated token and save it in a secure place. -### 3 Set Up `WITH_GITHUB_TOKEN` Action Secret +### 3. Set Up `WITH_GITHUB_TOKEN` Action Secret To set up the `WITH_GITHUB_TOKEN` action secret in GitHub: 1. Go to the repository page on GitHub. 2. Click on the "Settings" tab. From f5ce5de4f53399d4c97924b55b7cb243aa7f5d7d Mon Sep 17 00:00:00 2001 From: Bill Lau <656860993@qq.com> Date: Wed, 15 Jan 2025 04:33:13 +0800 Subject: [PATCH 6/6] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90e09e4..e9d67c6 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,4 @@ To create and publish a release on GitHub: 5. Click the "Publish release" button. ### 6. Wait for GitHub Action to Complete -After publishing the release, wait for the GitHub Action to complete. Once done, you will find the `jxl_file-${release_tag_name}.tar.gz` file containing the converted `.jxl` file on the release page created in step 4. +After publishing the release, wait for the GitHub Action to complete. Once done, you will find the `jxl_file-${release_tag_name}.tar.gz` file containing the converted `.jxl` file on the release page created in step 5.