-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from haruyan-hopemucci/develop/support_heic_fo…
…rmat heic対応(v0.4.0)
- Loading branch information
Showing
6 changed files
with
356 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
<title>LGTN Generator</title> | ||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" | ||
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> | ||
<script src="./js/heic2any.js"></script> | ||
<script src="./js/app.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous" /> | ||
|
@@ -18,7 +19,7 @@ | |
|
||
<body> | ||
<main class="container"> | ||
<h1>LGTN Generator <small>v0.3.0</small></h1> | ||
<h1>LGTN Generator <small>v0.4.0</small></h1> | ||
<div id="paste-area"> | ||
<div id="paste-area-message"> | ||
クリップボードにコピーした画像をペーストしてください。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
<style> | ||
#target { | ||
max-width: 100vw; | ||
} | ||
img { | ||
max-width: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>target</h1> | ||
<div id="target"></div> | ||
|
||
<script src="../docs/js/heic2any.js"></script> | ||
<script> | ||
fetch("./test.heic") | ||
.then((res) => res.blob()) | ||
.then((blob) => | ||
heic2any({ | ||
blob, | ||
}) | ||
) | ||
.then((conversionResult) => { | ||
var url = URL.createObjectURL(conversionResult); | ||
document.getElementById( | ||
"target" | ||
).innerHTML = `<a target="_blank" href="${url}"><img src="${url}"></a>`; | ||
}) | ||
.catch((e) => { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Binary file not shown.