-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (103 loc) · 5.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>HEIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG - August - Let's Write</title>
<link rel="canonical" href="https://www.letswrite.tw/heic2any/"/>
<meta property="og:url" content="https://letswritetw.github.io/letswrite-heic2any/"/>
<meta property="og:type" content="website"/>
<meta property="og:site_name" content="Let's Write"/>
<meta property="og:title" content="HEIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG - Augustus - Let's Write"/>
<meta itemprop="name" content="HEIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG - Augustus - Let's Write"/>
<meta name="description" content="EIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG"/>
<meta property="og:description" content="EIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG"/>
<meta itemprop="description" content="EIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG"/>
<meta itemprop="image" content="https://letswritetw.github.io/letswrite-heic2any/fb.jpg"/>
<meta property="og:image" content="https://letswritetw.github.io/letswrite-heic2any/fb.jpg"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>
<meta property="og:image:alt" content="HEIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG"/>
<link rel="shortcut icon" href="https://letswritetw.github.io/letswritetw/dist/img/logo_512.png"/>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="dist/style.min.css"/>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
main: '#42A6F7',
mainHover: '#167FFF'
}
}
}
}
</script>
<!-- Google Tag Manager-->
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PGQ9WQT');
</script>
</head>
<body class="bg-neutral-800 text-white">
<!-- Google Tag Manager (noscript)-->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PGQ9WQT" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<div class="container mx-auto p-8" id="app">
<div class="text-center">
<h1 class="mb-4 font-bold text-4xl">HEIC2ANY,在瀏覽器上將 HEIC 格式轉換為 JPG、PNG</h1>
<p>筆記文:<a class="text-main hover:text-mainHover" href="https://www.letswrite.tw/heic2any/">Let's Write</a></p>
</div>
<hr class="my-6 mx-auto max-w-3xl border-t border-gray-500 border-dashed"/>
<section class="mx-auto max-w-3xl p-4">
<div class="grid gap-4 sm:grid-cols-2">
<!-- 選擇圖片-->
<div class="flex items-center justify-center">
<label class="mx-auto cursor-pointer flex w-full h-full flex-col items-center bg-neutral-900 rounded-xl border-2 border-dashed border-blue-400 p-6 text-center" for="file">
<svg class="h-10 w-10 text-blue-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"></path>
</svg>
<h2 class="mt-4 text-xl font-bold">1 選擇圖檔</h2>
<p class="mt-2">點擊並選擇您的圖片</p>
<p class="mt-2">限制圖片格式為 HEIC</p>
<p class="mt-2">圖片選擇完,便會自動轉檔並下載</p>
<input class="hidden" id="file" type="file" accept="image/heic"/>
</label>
</div>
<!-- 使用預設圖片-->
<div class="flex items-center justify-center">
<div class="mx-auto flex w-full flex-col items-center bg-neutral-900 rounded-xl border-2 border-dashed border-blue-400 p-4 text-center">
<h2 class="mt-1 mb-2 text-xl font-bold">2 使用預設圖片</h2><a id="placeholder" href=""><img src="dist/demo.jpg"/></a>
</div>
</div>
</div>
<!-- control-->
<div class="my-8 flex items-center">
<p class="shrink-0 text-lg">轉換格式:</p>
<select class="appearance-none border border-neutral-500 rounded-lg focus:ring-blue-500 focus:outline-none w-full px-5 py-3 cursor-pointer" id="type">
<option value="jpeg">JPEG 可選擇品質</option>
<option value="png">PNG</option>
<option value="gif">GIF 轉換時間最久</option>
</select>
</div>
<div class="mt-8 flex items-center">
<p class="shrink-0 text-lg">轉換品質:</p>
<input class="appearance-none bg-white rounded-lg h-3 w-full" id="quality" type="range" min="0.1" max="1" step="0.1" value="0.7"/>
<p class="shrink-0 w-10 text-center text-lg" id="quality-output">0.7</p>
</div>
<div class="my-4">
<p class="text-lg">* 轉換品質僅在圖片格式選擇 JPEG 時有效。</p>
</div>
<hr class="my-6 mx-auto max-w-3xl border-t border-gray-500 border-dashed"/>
</section>
<section id="preview"></section>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.3/heic2any.min.js" async="async"></script>
<script src="dist/main.min.js"></script>
</body>
</html>