Skip to content

JXL移行に伴うコメント修正と未使用WebPメソッドの削除#5

Open
Sigma-project wants to merge 2 commits into
masterfrom
fix/jxl-cleanup
Open

JXL移行に伴うコメント修正と未使用WebPメソッドの削除#5
Sigma-project wants to merge 2 commits into
masterfrom
fix/jxl-cleanup

Conversation

@Sigma-project
Copy link
Copy Markdown
Owner

Summary

  • SVG webpublic に関するコメントを「png」から「jxl」に修正(MkMediaList.vue, EmMediaList.vue)
  • 呼び出し元のない旧 WebP 変換メソッド(convertToWebp 等)と webpDefault を ImageProcessingService.ts から削除

Test plan

  • フロントエンドのビルドが通ることを確認
  • バックエンドのビルドが通ることを確認
  • 画像アップロード・表示が正常に動作することを確認

🤖 Generated with Claude Code

Sigma-project and others added 2 commits February 16, 2026 20:32
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

このPRによるapi.jsonの差分
差分はありません。
Get diff files from Workflow Page

@github-actions
Copy link
Copy Markdown

Backend Memory Usage Comparison

Metric base head Diff
RSS 357.55 MB 352.02 MB -5.53 MB (-1.54%)

See workflow logs for details

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request aims to update comments related to a JXL migration and remove unused WebP conversion methods. However, the comment changes are incorrect - they change "png" to "jxl" when describing SVG webpublic files, but according to the backend code, SVG files are actually converted to PNG format for webpublic storage, not JXL.

Changes:

  • Updated comments in MkMediaList.vue and EmMediaList.vue from "png" to "jxl" (incorrect)
  • Removed unused WebP conversion methods (convertToWebp, convertSharpToWebp, convertToWebpStream, convertSharpToWebpStream) and webpDefault constant from ImageProcessingService.ts (correct)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
packages/frontend/src/components/MkMediaList.vue Incorrectly updates two comments about SVG webpublic format from "png" to "jxl"
packages/frontend-embed/src/components/EmMediaList.vue Incorrectly updates comment about SVG webpublic/thumbnail format from "png" to "jxl"
packages/backend/src/core/ImageProcessingService.ts Correctly removes unused WebP conversion methods and webpDefault constant

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const previewable = (file: Misskey.entities.DriveFile): boolean => {
if (file.type === 'image/svg+xml') return true; // svgのwebpublic/thumbnailはpngなのでtrue
if (file.type === 'image/svg+xml') return true; // svgのwebpublic/thumbnailはjxlなのでtrue
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is incorrect. According to DriveService.ts line 336-337, SVG files are converted to PNG for webpublic/thumbnail, not JXL. The comment should remain as "png" instead of being changed to "jxl". SVG files are specifically listed alongside PNG and BMP as formats that get converted to PNG, while JPEG, WebP, AVIF, and JXL formats get converted to JXL.

Suggested change
if (file.type === 'image/svg+xml') return true; // svgのwebpublic/thumbnailはjxlなのでtrue
if (file.type === 'image/svg+xml') return true; // svgのwebpublic/thumbnailはpngなのでtrue

Copilot uses AI. Check for mistakes.
dataSource: props.mediaList
.filter(media => {
if (media.type === 'image/svg+xml') return true; // svgのwebpublicはpngなのでtrue
if (media.type === 'image/svg+xml') return true; // svgのwebpublicはjxlなのでtrue
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is incorrect. According to DriveService.ts line 336-337, SVG files are converted to PNG for webpublic, not JXL. The comment should remain as "png" instead of being changed to "jxl". SVG files are specifically listed alongside PNG and BMP as formats that get converted to PNG, while JPEG, WebP, AVIF, and JXL formats get converted to JXL.

Suggested change
if (media.type === 'image/svg+xml') return true; // svgのwebpublicはjxlなのでtrue
if (media.type === 'image/svg+xml') return true; // svgのwebpublicはpngなのでtrue

Copilot uses AI. Check for mistakes.

const previewable = (file: Misskey.entities.DriveFile): boolean => {
if (file.type === 'image/svg+xml') return true; // svgのwebpublic/thumbnailはpngなのでtrue
if (file.type === 'image/svg+xml') return true; // svgのwebpublic/thumbnailはjxlなのでtrue
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is incorrect. According to DriveService.ts line 336-337, SVG files are converted to PNG for webpublic/thumbnail, not JXL. The comment should remain as "png" instead of being changed to "jxl". SVG files are specifically listed alongside PNG and BMP as formats that get converted to PNG, while JPEG, WebP, AVIF, and JXL formats get converted to JXL.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants