0l1v3rr / 0l1v3rr/github-readme-tech-stack

Doesn't work for custom SVGs

オープン
#471 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
261
フォーク
46
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
The generated URL is simply too long when you add custom SVGs. I built one with just 2 lines and it generated an URL over 40k characters long. Even tinyurl can't handle it (max 32k), browsers also say the URL is too long.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '[...](https://github-readme-tech-stack.vercel.app/)'
2. Go to 'do your stuff and go to step 6/7 '
3. Add 'about 11 svgs about ~3KiB across two lines'
4. Generate a _Titanoboa_ type of URL

**Expected behavior**
It should generate a 'way shorter URL' capable of being read. Or at least, it should generate a PNG image that you could download and add it to a shorter link.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この課題は、カスタムSVGを追加した際のURLの長さに関するものです。URL生成ロジック(おそらくSVGデータをシリアライズするAPIルートまたはユーティリティ関数内)を確認してください。SVGのエンコード方法、および圧縮や代替出力形式(PNGなど)がサポートされているかどうかを確認します。目標は、URLを短縮するか、ダウンロード可能な画像を提供することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
nextjs, react, tailwindcss, typescript
領域
frontend, tooling, web-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。