Merge pull request #81 from langgenius/feat/brand

Docs: update icon and primary color
This commit is contained in:
AllenWriter
2025-05-15 17:14:37 +08:00
committed by GitHub
14 changed files with 986 additions and 10 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -3,14 +3,14 @@
"theme": "mint",
"name": "Dify Docs",
"colors": {
"primary": "#346DDB",
"primary": "#0034FF",
"light": "#688FE8",
"dark": "#346DDB"
"dark": "#0034FF"
},
"favicon": "/dify-logo.png",
"favicon": "/logo/dify-logo.png",
"logo": {
"light": "/logo/dify-logo-black.svg",
"dark": "/logo/dify-logo-white.svg"
"light": "https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg",
"dark": "https://assets-docs.dify.ai/2025/05/c51f1cda47c1d9a4a162d7736f6e4c53.svg"
},
"navigation": {
"versions": [
@@ -592,9 +592,11 @@
]
},
{
"tab": "Termbase",
"tab": "Resources",
"pages": [
"en/termbase/termbase"
"en/resources/termbase",
"en/resources/about-dify/dify-brand-guidelines",
"en/resources/about-dify/dify-brand-usage-terms"
]
}
]
@@ -1215,9 +1217,11 @@
]
},
{
"tab": "术语表",
"tab": "资源",
"pages": [
"zh-hans/termbase/termbase"
"zh-hans/resources/termbase",
"zh-hans/resources/about-dify/dify-brand-guidelines",
"zh-hans/resources/about-dify/dify-brand-usage-terms"
]
}
]
@@ -1682,7 +1686,9 @@
{
"tab": "用語ベース",
"pages": [
"ja-jp/termbase/termbase"
"ja-jp/resources/termbase",
"ja-jp/resources/about-dify/dify-brand-guidelines",
"ja-jp/resources/about-dify/dify-brand-usage-terms"
]
}
]

View File

@@ -0,0 +1,89 @@
---
title: Dify Brand Guidelines
---
The Dify identity is more than a logo—it's a statement of thoughtful construction, system-level clarity, and open collaboration.
When you are authorized or recognized as part of the Dify ecosystem, you represent the values we stand for.
By using Dify Brand Assets in an official or affiliate capacity, you share in the responsibility of upholding our design system and product philosophy.
Use of Dify Brand Assets must comply with our Brand Guidelines and be consistent with the principles outlined in the Dify Brand Usage Terms.
Any use that implies endorsement, partnership, or certification without explicit permission is not allowed.
Dify may revoke usage rights at any time if misuse occurs.
Refer to: [Dify Brand Usage Terms](/en/resources/about-dify/dify-brand-usage-terms).
## Our Logo
![](https://assets-docs.dify.ai/2025/05/8fdc43456b4eaa80a97144f572734d15.png)
## Using Our Logo
The Dify logo signifies more than product—it signals trust, clarity, and technical credibility.
To maintain brand integrity, it must be used in accordance with our guidelines.
Misuse or casual placement may imply endorsement or affiliation where none exists.
Please use thoughtfully and only in approved contexts.
### Examples of appropriate logo usage
- In co-branded visuals with official partners
- In event materials or pages where Dify is a sponsor or participant
- In a group of logos alongside other tools (“logo garden”)
- In documentation, presentations, or integrations referencing Dify technologies
## Use the Right Color
Whenever possible, use the official two-tone Dify logo.
This version best represents the balance between clarity and structure in our brand.
Alternative color variations may be used when:
- Background colors limit contrast
- Specific print or digital limitations apply
- Layout demands mono or reversed options
![](https://assets-docs.dify.ai/2025/05/099d7f811983533566c3269dd7e3ccd2.png)
## Keep It Legible
To ensure visibility and clarity, the Dify logo must always be surrounded by a minimum area of clear space.This prevents visual interference from nearby text, images, or other graphic elements.
- More space is recommended wherever possible to enhance legibility.
- Do not crowd the logo. Respecting this spacing is essential to maintain its impact and recognizability across all applications.
![](https://assets-docs.dify.ai/2025/05/e001f6009c7a64c97f7174c7efc7c061.png)
## Co-Branding Guidance
![](https://assets-docs.dify.ai/2025/05/68800461c5b609f960446236d9022105.png)
When pairing the Dify logo with another brand, always follow the co-branding layout shown here to maintain clarity and balance.
- Use a thin vertical divider to separate the Dify logo from the partner brand.
- Always maintain the relative positioning and proportions between the Dify and partner logos.
- Do not rearrange the layout, change alignment, or scale elements independently.
## Multiple Logo Lockup Guidelines
![](https://assets-docs.dify.ai/2025/05/234b116641e2590d656f5318ad2f02cc.png)
When Dify appears alongside two or more partner logos, follow these rules to ensure clarity and visual order:
- Do not use dividers between logos.
- Maintain consistent and equal spacing between all logos.
- If the initiative is partner-led, the partners logo should appear first. All other logos, including Dify, should follow in alphabetical order.
- All logos must be visually aligned to the same height. Do not scale or distort individual marks.
- Preserve each brands official colors, adequate whitespace, and consistent spacing throughout.
## Dify Partner Badge
![](https://assets-docs.dify.ai/2025/05/3429fc70b342164bf145825fb47cc1fd.png)
The Dify Partner Badge is used to indicate an official relationship with Dify.
It can be included in marketing materials, presentations, documentation, and event assets owned by the partner, as long as the content refers to Difys products, integrations, or support.
- Ensure minimum clear space so the design doesn't appear cluttered.
- Do not change the badge color.
- Do not change the proportions of the logo.
- Do not alter or replace the text in the badge.
- Do not make the badge bigger than the partner logo.
## Download Resources
[Download Dify Design Kit](https://assets-docs.dify.ai/2025/05/5f547d3718bf32067849d9a83d9c92cf.zip)

View File

@@ -0,0 +1,105 @@
---
title: Dify Brand Usage Terms
---
These Brand Usage Terms ("Terms") govern the proper use of trademarks, logos, names, designs, and other brand elements (collectively, "Brand Assets") owned by LangGenius, Inc. ("Dify," "we," "our," or "us"). By using Dify Brand Assets, you agree to comply with these Terms.
---
## 1. Permitted Uses (No Prior Approval Required)
You may use Dify Brand Assets without prior approval in the following cases, provided you adhere to the Dify Brand Guidelines:
### Community & Content Creation
- In blog posts, articles, documentation, social media, forums, and presentations to reference or discuss Dify.
- In open-source projects (e.g., GitHub repositories, README files, and code examples) to indicate integration or support for Dify, as long as it is clear that your project is not officially affiliated with or endorsed by Dify.
- In YouTube videos, podcasts, and developer talks for educational or informational purposes.
### Open-Source Projects
- You may display "Powered by Dify" in non-commercial open-source projects to acknowledge the use of Dify.
- Linking to the official Dify website or GitHub repository is encouraged.
Media & News Coverage
- Journalists, bloggers, and media outlets may use Dify Brand Assets in news articles or reports, provided the content is factually accurate and does not imply endorsement or sponsorship by Dify.
---
## 2. Restricted Uses (Approval Required)
The following uses require prior written approval from Dify:
### Commercial Use & Marketing
- Resellers, partners, and SaaS platforms integrating Dify into commercial products or services.
- Using Dify Brand Assets in advertisements, promotional materials, or sales collateral.
- Using Dify Brand Assets in paid training, consulting, or courses that suggest official endorsement.
### Official Partnership & Endorsement
- You may not use Dify Brand Assets in a way that implies endorsement, certification, sponsorship, or partnership with Dify unless explicitly authorized.
- You may not claim to be an "official partner" or "certified provider" of Dify without prior approval.
### Merchandise & Physical Goods
- You may not use Dify Brand Assets on T-shirts, stickers, posters, or any merchandise without written permission.
Modifications & Brand Combinations
- You may not alter the Dify Logo, including changes to colors, fonts, proportions, or effects.
- You may not combine the Dify Logo with other logos or symbols to create a new or composite mark.
---
## 3. Brand Usage Guidelines
When using Dify Brand Assets, you must comply with our Brand Guidelines, which include:
- Maintain logo integrity: Do not distort, stretch, or rotate the logo.
- Use official logo versions: Do not use unofficial or outdated versions.
- Provide sufficient spacing: Ensure clear visual separation around the logo.
- Do not alter colors: The logo must be used in the official Dify color scheme.
---
## 4. Trademark & Copyright Notice
- "Dify" and all related logos and brand elements are trademarks or registered trademarks of LangGenius, Inc.
- These Terms do not grant any ownership or licensing rights to you. Dify retains all rights to its Brand Assets.
---
## 5. Misuse & Enforcement
- Dify reserves the right to revoke usage rights at any time and may require you to cease using the Brand Assets if they are used improperly.
- Unauthorized or misleading use of the Brand Assets may result in legal action.
---
## 6. How to Request Permission?
If your use case requires approval (e.g., commercial use, partnerships, merchandising), please submit a request to: [brand@dify.ai](mailto:brand@dify.ai)
Your request should include:
- Your name / company name
- A detailed description of how you intend to use the Dify Brand Assets
- Relevant materials (e.g., mockups, website links)
---
## 7. Reporting Brand Misuse
If you believe that Dify Brand Assets are being misused in violation of these Terms—such as unauthorized commercial use, misleading endorsements, or counterfeit merchandise—you may report it to us.
To submit a report, contact [brand@dify.ai](mailto:brand@dify.ai) with the following details:
- A description of the issue (e.g., unauthorized commercial use, misleading branding, counterfeit products)
- Relevant evidence (e.g., screenshots, links, documents)
- Your contact information (optional, in case we need further details)
Dify will review all reports and take appropriate action as necessary, which may include legal enforcement or requiring the violating party to cease unauthorized use. We appreciate your support in protecting the Dify brand.
---
## 8. Updates to These Terms
Dify may update these Brand Usage Terms periodically. Any changes will be published on this page, and by continuing to use the Brand Assets, you agree to the latest version.
Latest Version: 2025/03/04
---
© LangGenius, Inc. All rights reserved. Unauthorized use of Dify Brand Assets is strictly prohibited.

View File

@@ -0,0 +1,89 @@
---
title: Dify ブランドガイドライン
---
Dify のアイデンティティは単なるロゴではありません。それは、思慮深い構築、システムレベルの明確性、そしてオープンなコラボレーションの表明です。
あなたが Dify エコシステムの一部として承認または認識されている場合、私たちが掲げる価値観を代表することになります。
Dify ブランドアセットを公式または関連する立場で使用することで、私たちのデザインシステムと製品哲学を守る責任を共有します。
Dify ブランドアセットの使用は、私たちのブランドガイドラインに準拠し、Dify ブランド使用規約に概説された原則と一致している必要があります。
明示的な許可なく、承認、パートナーシップ、または認証を暗示する使用は許可されていません。
誤用が発生した場合、Dify はいつでも使用権を取り消すことができます。
参照:[Dify ブランド使用規約](/ja-jp/resources/about-dify/dify-brand-usage-terms)。
## 私たちのロゴ
![](https://assets-docs.dify.ai/2025/05/8fdc43456b4eaa80a97144f572734d15.png)
## ロゴの使用
Dify ロゴは製品以上のものを意味します。それは信頼、明確性、技術的な信頼性を示します。
ブランドの完全性を維持するために、ガイドラインに従って使用する必要があります。
誤用や無造作な配置は、存在しない承認や提携を暗示する可能性があります。
承認されたコンテキストでのみ、慎重に使用してください。
### 適切なロゴ使用の例
- 公式パートナーとの共同ブランドビジュアルで
- Dify がスポンサーまたは参加者であるイベント資料やページで
- 他のツールと共に表示されるロゴのグループで(「ロゴガーデン」)
- Dify テクノロジーを参照するドキュメント、プレゼンテーション、または統合で
## 正しい色を使用する
可能な限り、公式の2トーンの Dify ロゴを使用してください。
このバージョンは、私たちのブランドにおける明確性と構造のバランスを最もよく表しています。
以下の場合に代替カラーバリエーションを使用できます:
- 背景色がコントラストを制限する場合
- 特定の印刷またはデジタル制限が適用される場合
- レイアウトがモノクロまたは反転オプションを要求する場合
![](https://assets-docs.dify.ai/2025/05/099d7f811983533566c3269dd7e3ccd2.png)
## 読みやすさを保つ
視認性と明確性を確保するために、Dify ロゴは常に最小限の空白スペースで囲まれている必要があります。これにより、近くのテキスト、画像、またはその他のグラフィック要素からの視覚的な干渉を防ぎます。
- 可能な限り、より多くのスペースを推奨します。これにより可読性が向上します。
- ロゴを詰め込まないでください。このスペーシングを尊重することは、すべてのアプリケーションでその影響力と認識性を維持するために不可欠です。
![](https://assets-docs.dify.ai/2025/05/e001f6009c7a64c97f7174c7efc7c061.png)
## 共同ブランディングガイダンス
![](https://assets-docs.dify.ai/2025/05/68800461c5b609f960446236d9022105.png)
Dify ロゴを別のブランドとペアリングする場合は、明確性とバランスを維持するために、ここに示す共同ブランディングレイアウトに常に従ってください。
- 細い垂直分割線を使用して、Dify ロゴをパートナーブランドから分離します。
- Dify とパートナーロゴ間の相対的な配置と比率を常に維持します。
- レイアウトを再配置したり、配置を変更したり、要素を独立してスケーリングしたりしないでください。
## 複数ロゴのロックアップガイドライン
![](https://assets-docs.dify.ai/2025/05/234b116641e2590d656f5318ad2f02cc.png)
Dify が2つ以上のパートナーロゴと共に表示される場合、明確性と視覚的秩序を確保するために、これらのルールに従ってください
- ロゴ間に分割線を使用しないでください。
- すべてのロゴ間で一貫した均等なスペーシングを維持します。
- イニシアチブがパートナー主導の場合、パートナーのロゴが最初に表示されるべきです。Dify を含む他のすべてのロゴは、アルファベット順に続きます。
- すべてのロゴは同じ高さに視覚的に揃えられている必要があります。個々のマークをスケーリングまたは歪めないでください。
- 各ブランドの公式色、十分な空白、および一貫したスペーシングを保持します。
## Dify パートナーバッジ
![](https://assets-docs.dify.ai/2025/05/3429fc70b342164bf145825fb47cc1fd.png)
Dify パートナーバッジは、Dify との公式な関係を示すために使用されます。
内容が Dify の製品、統合、またはサポートに言及している限り、パートナーが所有するマーケティング資料、プレゼンテーション、ドキュメント、およびイベント資産に含めることができます。
- デザインが乱雑に見えないように、最小限の空白スペースを確保してください。
- バッジの色を変更しないでください。
- ロゴの比率を変更しないでください。
- バッジ内のテキストを変更または置換しないでください。
- バッジをパートナーロゴよりも大きくしないでください。
## リソースをダウンロード
[Dify デザインキットをダウンロード](https://assets-docs.dify.ai/2025/05/5f547d3718bf32067849d9a83d9c92cf.zip)

View File

@@ -0,0 +1,108 @@
---
title: Dify ブランド使用条件
---
これらのブランド使用条件「規約」は、LangGenius, Inc.「Dify」、「私たち」、または「弊社」が所有する商標、ロゴ、名称、デザイン、およびその他のブランド要素総称して「ブランドアセット」の適切な使用を規定しています。Dify ブランドアセットを使用することにより、あなたはこれらの規約に従うことに同意します。
---
## 1. 許可された使用(事前承認不要)
以下の場合、Dify ブランドガイドラインに従うことを条件に、事前承認なしに Dify ブランドアセットを使用できます:
### コミュニティとコンテンツ作成
- Dify を参照または議論するためのブログ投稿、記事、ドキュメント、ソーシャルメディア、フォーラム、プレゼンテーション。
- Dify の統合またはサポートを示すオープンソースプロジェクトGitHub リポジトリ、README ファイル、コード例)で、プロジェクトが Dify と公式に提携しているか、Dify によって承認されていないことが明確である限り。
- 教育的または情報提供目的での YouTube ビデオ、ポッドキャスト、開発者向けトーク。
### オープンソースプロジェクト
- 非商用オープンソースプロジェクトで「Powered by Dify」を表示して、Dify の使用を認識することができます。
- 公式の Dify ウェブサイトまたは GitHub リポジトリへのリンクが推奨されます。
### メディアとニュース報道
- ジャーナリスト、ブロガー、およびメディアは、内容が事実上正確であり、Dify による承認またはスポンサーシップを暗示しない限り、ニュース記事またはレポートで Dify ブランドアセットを使用できます。
---
## 2. 制限された使用(承認必要)
以下の使用には、Dify からの事前書面承認が必要です:
### 商業利用とマーケティング
- Dify を商業製品またはサービスに統合するリセラー、パートナー、および SaaS プラットフォーム。
- 広告、宣伝資料、または販売資料での Dify ブランドアセットの使用。
- 公式の承認を示唆する有料トレーニング、コンサルティング、またはコースでの Dify ブランドアセットの使用。
### 公式パートナーシップと承認
- 明示的に承認されない限り、Dify による承認、認証、スポンサーシップ、またはパートナーシップを暗示する方法で Dify ブランドアセットを使用することはできません。
- 事前承認なしに、Dify の「公式パートナー」または「認定プロバイダー」であると主張することはできません。
### グッズと物理的商品
- 書面による許可なしに、T シャツ、ステッカー、ポスター、またはグッズで Dify ブランドアセットを使用することはできません。
### 修正とブランドの組み合わせ
- 色、フォント、比率、またはエフェクトの変更を含む、Dify ロゴの変更はできません。
- Dify ロゴを他のロゴやシンボルと組み合わせて、新しいまたは複合的なマークを作成することはできません。
---
## 3. ブランド使用ガイドライン
Dify ブランドアセットを使用する際は、以下を含むブランドガイドラインに従う必要があります:
- ロゴの完全性を維持する:ロゴを歪めたり、伸ばしたり、回転させたりしないでください。
- 公式ロゴバージョンを使用する:非公式または古いバージョンを使用しないでください。
- 十分なスペーシングを提供する:ロゴ周囲に明確な視覚的分離を確保してください。
- 色を変更しない:ロゴは公式の Dify カラースキームで使用する必要があります。
---
## 4. 商標と著作権表示
- "Dify" および関連するすべてのロゴとブランド要素は、LangGenius, Inc. の商標または登録商標です。
- これらの規約は、あなたに所有権またはライセンス権を付与しません。Dify はブランドアセットに対するすべての権利を保持します。
---
## 5. 誤用と執行
- Dify はいつでも使用権を取り消す権利を留保し、不適切に使用された場合、ブランドアセットの使用を停止するよう要求することがあります。
- 許可されていないまたは誤解を招くブランドアセットの使用は、法的措置につながる可能性があります。
---
## 6. 許可を申請する方法
あなたの使用事例が承認を必要とする場合(例:商業利用、パートナーシップ、グッズ販売)、以下に申請を提出してください:[brand@dify.ai](mailto:brand@dify.ai)
申請には以下を含める必要があります:
- あなたの名前/会社名
- Dify ブランドアセットをどのように使用する予定かの詳細な説明
- 関連資料(例:モックアップ、ウェブサイトリンク)
---
## 7. ブランドの誤用を報告する
これらの規約に違反して Dify ブランドアセットが誤用されていると思われる場合(許可されていない商業利用、誤解を招く承認、偽造品など)、私たちに報告することができます。
報告を提出するには、以下の詳細情報を添えて [brand@dify.ai](mailto:brand@dify.ai) に連絡してください:
- 問題の説明(例:許可されていない商業利用、誤解を招くブランディング、偽造品)
- 関連証拠(例:スクリーンショット、リンク、ドキュメント)
- あなたの連絡先情報(オプション、さらなる詳細が必要な場合)
Dify はすべての報告を審査し、必要に応じて適切な措置を講じます。これには法的執行や違反者に対する許可されていない使用の停止要求が含まれる場合があります。Dify ブランドの保護へのご協力に感謝します。
---
## 8. これらの規約の更新
Dify は定期的にこれらのブランド使用規約を更新する場合があります。変更はこのページに公開され、ブランドアセットを継続して使用することにより、最新版に同意することになります。
最新バージョン2025/03/04
---
© LangGenius, Inc. すべての権利を保有します。Dify ブランドアセットの無断使用は固く禁じられています。

359
logo/convertor.html Normal file
View File

@@ -0,0 +1,359 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SVG to PNG Converter</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
background-color: #f5f5f5;
}
.container {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
margin-bottom: 30px;
}
.upload-area {
border: 3px dashed #ddd;
border-radius: 8px;
padding: 40px;
text-align: center;
margin-bottom: 30px;
cursor: pointer;
transition: border-color 0.3s;
}
.upload-area:hover {
border-color: #0033FF;
}
.upload-area.dragging {
border-color: #0033FF;
background-color: #f0f8ff;
}
.upload-area p {
margin: 10px 0;
color: #666;
}
.upload-button {
padding: 10px 20px;
background-color: #0033FF;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
.upload-button:hover {
background-color: #0028CC;
}
#fileInput {
display: none;
}
.preview-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-bottom: 30px;
}
.preview-box {
border: 2px solid #eee;
padding: 20px;
text-align: center;
min-height: 200px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #fafafa;
border-radius: 8px;
}
.preview-box h3 {
margin-top: 0;
color: #666;
}
.controls {
display: flex;
gap: 20px;
align-items: center;
flex-wrap: wrap;
margin-bottom: 20px;
}
label {
display: flex;
align-items: center;
gap: 10px;
font-weight: bold;
}
input[type="number"] {
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
width: 100px;
}
button {
padding: 10px 20px;
background-color: #0033FF;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
button:hover {
background-color: #0028CC;
}
button:disabled {
background-color: #999;
cursor: not-allowed;
}
#svgPreview {
max-width: 100%;
max-height: 300px;
}
#pngPreview {
max-width: 100%;
max-height: 300px;
border: 1px solid #eee;
}
.info {
background-color: #f0f8ff;
padding: 15px;
border-radius: 5px;
margin-top: 20px;
}
.transparent-toggle {
display: flex;
align-items: center;
gap: 10px;
}
.hidden {
display: none;
}
.filename {
font-size: 14px;
color: #666;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>SVG to PNG Converter</h1>
<div class="upload-area" id="uploadArea">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#999" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
<p><strong>Drag & Drop your SVG file here</strong></p>
<p>or</p>
<button class="upload-button" onclick="document.getElementById('fileInput').click()">Choose File</button>
<input type="file" id="fileInput" accept=".svg,image/svg+xml">
<p class="filename" id="filename"></p>
</div>
<div class="preview-section hidden" id="previewSection">
<div class="preview-box">
<h3>Original SVG</h3>
<div id="svgPreview"></div>
</div>
<div class="preview-box">
<h3>Converted PNG</h3>
<canvas id="pngPreview"></canvas>
</div>
</div>
<div class="controls hidden" id="controlsSection">
<label>
Width:
<input type="number" id="widthInput" value="800" min="1" max="4000">
</label>
<label>
Height:
<input type="number" id="heightInput" value="600" min="1" max="4000">
</label>
<label class="transparent-toggle">
<input type="checkbox" id="transparentBg" checked>
Transparent Background
</label>
<button id="convertBtn">Convert to PNG</button>
<button id="downloadBtn" disabled>Download PNG</button>
</div>
<div class="info">
<p><strong>How to use:</strong></p>
<ul>
<li>Drag and drop an SVG file or click to upload</li>
<li>Adjust the width and height as needed</li>
<li>Choose whether you want a transparent background</li>
<li>Click "Convert to PNG" to generate the PNG image</li>
<li>Click "Download PNG" to save the converted image</li>
</ul>
<p><strong>Technical Details:</strong></p>
<ul>
<li>Conversion happens entirely in your browser using Canvas API</li>
<li>SVG (Scalable Vector Graphics) is converted to PNG (Portable Network Graphics)</li>
<li>The process: SVG → Image → Canvas → PNG data URL</li>
<li>Original aspect ratio can be maintained or changed as needed</li>
</ul>
</div>
</div>
<script>
let currentSvgContent = '';
let currentFilename = '';
const uploadArea = document.getElementById('uploadArea');
const fileInput = document.getElementById('fileInput');
const svgPreview = document.getElementById('svgPreview');
const canvas = document.getElementById('pngPreview');
const ctx = canvas.getContext('2d');
const widthInput = document.getElementById('widthInput');
const heightInput = document.getElementById('heightInput');
const convertBtn = document.getElementById('convertBtn');
const downloadBtn = document.getElementById('downloadBtn');
const transparentBg = document.getElementById('transparentBg');
const previewSection = document.getElementById('previewSection');
const controlsSection = document.getElementById('controlsSection');
const filenameDisplay = document.getElementById('filename');
// Drag and drop events
uploadArea.addEventListener('dragover', (e) => {
e.preventDefault();
uploadArea.classList.add('dragging');
});
uploadArea.addEventListener('dragleave', () => {
uploadArea.classList.remove('dragging');
});
uploadArea.addEventListener('drop', (e) => {
e.preventDefault();
uploadArea.classList.remove('dragging');
const files = e.dataTransfer.files;
if (files.length > 0 && files[0].type === 'image/svg+xml') {
handleFile(files[0]);
}
});
fileInput.addEventListener('change', (e) => {
if (e.target.files.length > 0) {
handleFile(e.target.files[0]);
}
});
function handleFile(file) {
if (file.type !== 'image/svg+xml') {
alert('Please upload an SVG file');
return;
}
currentFilename = file.name.replace('.svg', '');
filenameDisplay.textContent = file.name;
const reader = new FileReader();
reader.onload = (e) => {
currentSvgContent = e.target.result;
displaySvg();
previewSection.classList.remove('hidden');
controlsSection.classList.remove('hidden');
// Extract original dimensions
const parser = new DOMParser();
const svgDoc = parser.parseFromString(currentSvgContent, 'image/svg+xml');
const svgElement = svgDoc.querySelector('svg');
if (svgElement) {
const viewBox = svgElement.getAttribute('viewBox');
const width = svgElement.getAttribute('width');
const height = svgElement.getAttribute('height');
if (viewBox) {
const [, , vbWidth, vbHeight] = viewBox.split(' ').map(Number);
widthInput.value = Math.min(vbWidth * 2, 1600);
heightInput.value = Math.min(vbHeight * 2, 1600);
} else if (width && height) {
widthInput.value = parseInt(width) * 2;
heightInput.value = parseInt(height) * 2;
}
}
convertSvgToPng();
};
reader.readAsText(file);
}
function displaySvg() {
svgPreview.innerHTML = currentSvgContent;
// Ensure SVG fits in preview
const svg = svgPreview.querySelector('svg');
if (svg) {
svg.style.maxWidth = '100%';
svg.style.maxHeight = '100%';
svg.style.height = 'auto';
}
}
convertBtn.addEventListener('click', convertSvgToPng);
downloadBtn.addEventListener('click', downloadPng);
transparentBg.addEventListener('change', () => {
if (currentSvgContent) {
convertSvgToPng();
}
});
function convertSvgToPng() {
const width = parseInt(widthInput.value);
const height = parseInt(heightInput.value);
canvas.width = width;
canvas.height = height;
const img = new Image();
const svgBlob = new Blob([currentSvgContent], { type: 'image/svg+xml' });
const url = URL.createObjectURL(svgBlob);
img.onload = function() {
ctx.clearRect(0, 0, width, height);
// Apply background if not transparent
if (!transparentBg.checked) {
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, width, height);
}
ctx.drawImage(img, 0, 0, width, height);
URL.revokeObjectURL(url);
downloadBtn.disabled = false;
};
img.onerror = function() {
alert('Error converting SVG. Please check your file.');
URL.revokeObjectURL(url);
};
img.src = url;
}
function downloadPng() {
const link = document.createElement('a');
link.download = currentFilename + '.png';
// Canvas toDataURL() creates a PNG by default
link.href = canvas.toDataURL('image/png');
link.click();
}
</script>
</body>
</html>

BIN
logo/dify-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

23
logo/difyif-logo.svg Normal file
View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<defs>
<style>
.cls-1 {
fill: #03f;
}
.cls-2 {
fill: #fff;
}
</style>
</defs>
<g id="bg">
<circle class="cls-2" cx="12" cy="12" r="12"/>
</g>
<g id="logo">
<g>
<path class="cls-1" d="M9.11,8.58c.94,0,1.29-.58,1.29-1.29s-.35-1.29-1.29-1.29-1.29.58-1.29,1.29.35,1.29,1.29,1.29Z"/>
<path class="cls-1" d="M13.64,8.86v.83h-2.12v1.85h2.12v4.62h-3.51v-6.46s0,0,0,0h-4.62v1.85h2.58v4.62h-3.05v1.85h13.85v-1.85h-3.23v-4.62h3.23v-1.85h-3.23v-1.85h3.23v-1.85h-2.4c-1.58,0-2.86,1.28-2.86,2.86Z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 687 B

View File

@@ -0,0 +1,89 @@
---
title: Dify 品牌使用指南
---
Dify 的标识不仅仅是一个徽标——它代表着精心设计、系统化的清晰理念和开放协作精神。
当您被授权或被认可为 Dify 生态系统的一部分时,您所代表的,就是我们所倡导的价值观。
通过以官方或附属身份使用 Dify 品牌资产,您共同承担着维护我们设计系统和产品理念的责任。
Dify 品牌资产的使用必须符合我们的品牌指南,并与 Dify 品牌使用条款中概述的原则保持一致。
任何未经明确许可而暗示认可、合作或认证的使用都是不允许的。
如果发生滥用Dify 可能随时撤销使用权。
参考:[Dify 品牌使用条款](/zh-hans/resources/about-dify/dify-brand-usage-terms)。
## 我们的徽标
![](https://assets-docs.dify.ai/2025/05/8fdc43456b4eaa80a97144f572734d15.png)
## 使用我们的徽标
Dify 徽标不仅代表产品——它传递着信任、清晰和技术可信度。
为了保持品牌完整性,必须按照我们的指南使用。
滥用或随意放置可能暗示不存在的认可或附属关系。
请在经批准的情境中谨慎使用。
### 适当使用徽标的示例
- 在与官方合作伙伴的联合品牌视觉效果中
- 在 Dify 作为赞助商或参与者的活动材料或页面中
- 在与其他工具一起展示的徽标组中("徽标园地"
- 在引用 Dify 技术的文档、演示文稿或集成中
## 使用正确的颜色
只要可能,请使用官方的双色调 Dify 徽标。
此版本最能代表我们品牌中清晰度和结构之间的平衡。
在以下情况下可以使用替代颜色变体:
- 背景颜色限制对比度
- 特定的印刷或数字限制适用
- 布局需要单色或反转选项
![](https://assets-docs.dify.ai/2025/05/099d7f811983533566c3269dd7e3ccd2.png)
## 保持可读性
为确保可见性和清晰度Dify 徽标必须始终被最小面积的清晰空间包围。这可以防止附近的文本、图像或其他图形元素造成视觉干扰。
- 在可能的情况下建议使用更多空间以增强可读性。
- 不要压缩或挤占徽标空间。遵守此间距对于在所有应用中保持其影响力和可识别性至关重要。
![](https://assets-docs.dify.ai/2025/05/e001f6009c7a64c97f7174c7efc7c061.png)
## 联合品牌指南
![](https://assets-docs.dify.ai/2025/05/68800461c5b609f960446236d9022105.png)
将 Dify 徽标与另一个品牌配对时,请始终遵循此处显示的联合品牌布局,以保持清晰度和平衡。
- 使用细垂直分隔线将 Dify 徽标与合作伙伴品牌分开。
- 始终保持 Dify 和合作伙伴徽标之间的相对位置和比例。
- 不要重新排列布局、更改对齐方式或独立缩放元素。
## 多个徽标锁定指南
![](https://assets-docs.dify.ai/2025/05/234b116641e2590d656f5318ad2f02cc.png)
当 Dify 与两个或更多合作伙伴徽标一起出现时,请遵循这些规则以确保清晰度和视觉秩序:
- 徽标之间不使用分隔线。
- 在所有徽标之间保持一致且相等的间距。
- 如果该倡议由合作伙伴主导,合作伙伴的徽标应首先出现。包括 Dify 在内的所有其他徽标应按字母顺序排列。
- 所有徽标必须在视觉上对齐到相同的高度。不要缩放或扭曲单个标记。
- 保留每个品牌的官方颜色、充足的空白和始终如一的间距。
## Dify 合作伙伴徽章
![](https://assets-docs.dify.ai/2025/05/3429fc70b342164bf145825fb47cc1fd.png)
Dify 合作伙伴徽章用于表示与 Dify 的官方关系。
只要内容涉及 Dify 的产品、集成或支持,它就可以包含在合作伙伴拥有的营销材料、演示文稿、文档和活动资产中。
- 确保最小的清晰空间,使设计不会显得杂乱。
- 不要更改徽章颜色。
- 不要更改徽标的比例。
- 不要更改或替换徽章中的文本。
- 不要使徽章大于合作伙伴徽标。
## 下载资源
[下载 Dify 设计套件](https://assets-docs.dify.ai/2025/05/5f547d3718bf32067849d9a83d9c92cf.zip)

View File

@@ -0,0 +1,108 @@
---
title: Dify 品牌使用条款
---
这些品牌使用条款("条款")规范了对 LangGenius, Inc."Dify"、"我们"或"我们的")拥有的商标、徽标、名称、设计和其他品牌元素(统称为"品牌资产")的正确使用。通过使用 Dify 品牌资产,您同意遵守这些条款。
---
## 1. 允许的使用(无需事先批准)
在以下情况下,您可以在不事先批准的情况下使用 Dify 品牌资产,前提是您遵守 Dify 品牌指南:
### 社区和内容创作
- 在博客文章、文章、文档、社交媒体、论坛和演示文稿中引用或讨论 Dify。
- 在开源项目(例如 GitHub 存储库、README 文件和代码示例)中表明对 Dify 的集成或支持,只要明确说明您的项目不是与 Dify 正式关联或获得 Dify 认可。
- 在 YouTube 视频、播客和开发者演讲中用于教育或信息目的。
### 开源项目
- 您可以在非商业开源项目中显示"由 Dify 提供支持"以表示对 Dify 的使用。
- 鼓励链接到官方 Dify 网站或 GitHub 存储库。
媒体和新闻报道
- 记者、博客作者和媒体机构可以在新闻文章或报道中使用 Dify 品牌资产,前提是内容真实准确且不暗示 Dify 的认可或赞助。
---
## 2. 受限使用(需要批准)
以下使用需要 Dify 的事先书面批准:
### 商业使用和营销
- 将 Dify 集成到商业产品或服务中的转售商、合作伙伴和 SaaS 平台。
- 在广告、宣传材料或销售材料中使用 Dify 品牌资产。
- 在暗示官方认可的付费培训、咨询或课程中使用 Dify 品牌资产。
### 官方合作伙伴关系和认可
- 除非明确授权,否则您不得以暗示 Dify 认可、认证、赞助或合作的方式使用 Dify 品牌资产。
- 未经事先批准,您不得声称是 Dify 的"官方合作伙伴"或"认证提供商"。
### 商品和实物商品
- 未经书面许可,您不得在 T 恤、贴纸、海报或任何商品上使用 Dify 品牌资产。
修改和品牌组合
- 您不得更改 Dify 徽标,包括更改颜色、字体、比例或效果。
- 您不得将 Dify 徽标与其他徽标或符号组合以创建新的或复合的标记。
---
## 3. 品牌使用指南
使用 Dify 品牌资产时,您必须遵守我们的品牌指南,其中包括:
- 保持徽标完整性:不要扭曲、拉伸或旋转徽标。
- 使用官方徽标版本:不要使用非官方或过时的版本。
- 提供足够的间距:确保徽标周围有清晰的视觉分离。
- 不要更改颜色:徽标必须使用官方的 Dify 配色方案。
---
## 4. 商标和版权声明
- "Dify"以及所有相关徽标和品牌元素是 LangGenius, Inc. 的商标或注册商标。
- 这些条款不授予您任何所有权或许可权。Dify 保留对其品牌资产的所有权利。
---
## 5. 滥用和执行
- Dify 保留随时撤销使用权的权利,如果品牌资产使用不当,可能要求您停止使用品牌资产。
- 未经授权或误导性使用品牌资产可能导致法律诉讼。
---
## 6. 如何申请许可?
如果您的用例需要批准(例如商业用途、合作伙伴关系、商品销售),请提交申请至:[brand@dify.ai](mailto:brand@dify.ai)
您的申请应包括:
- 您的姓名/公司名称
- 您打算如何使用 Dify 品牌资产的详细说明
- 相关材料(例如样品、网站链接)
---
## 7. 举报品牌滥用
如果您认为 Dify 品牌资产正在被滥用,违反了这些条款——例如未经授权的商业使用、误导性认可或假冒商品——您可以向我们举报。
要提交举报,请联系 [brand@dify.ai](mailto:brand@dify.ai) 并提供以下详细信息:
- 问题描述(例如未经授权的商业使用、误导性品牌、假冒产品)
- 相关证据(例如截图、链接、文件)
- 您的联系信息(可选,以便我们需要更多详细信息时联系)
Dify 将审查所有举报并采取适当行动,这可能包括法律执行或要求违规方停止未经授权的使用。我们感谢您对保护 Dify 品牌的支持。
---
## 8. 这些条款的更新
Dify 可能会定期更新这些品牌使用条款。任何更改将在此页面上发布,通过继续使用品牌资产,您同意最新版本。
最新版本2025/03/04
---
© LangGenius, Inc. 保留所有权利。严禁未经授权使用 Dify 品牌资产。