? ??? ? ? ???? ?? ??? ?? ??? ??????. ?? ??? ? ??????? ????? ?? ????. ? ????? ??? ??? ?? ? ? ????. React? ????? ???? ????? ???? ????? ? ??? ?? ???? ???? ??? ?????. ? ?? ??? ??? ??? ????? ?? ??????? ???? ???? ???? ?????.
?????? JPEG? ???? ?? ? ???, ?? ???? ???? ??? ?????. ??? ?????? JPEG??? ?? ???? ??????? ??? ?? ??? ?? ??? ?????.
? ??? ? ?? ?? ??? ?????. ??? ?? ??? ???? ?? ? Blurhash ??.
?? ? ????? :
- Jimp (?? 0.16.1)
- BlurHash (version 1.1.5)
- ?? (?? 0.30.3)
?? 1 : ??? ?? ???? ??
??? URL? ???? ?? Base64- ??? ? ???? ??? ??? ????? JavaScript? ?? ???? ? ????. Base64 ???? ????? ? ?? ??? ???? ? ?? ??? ????? ??? ?? ?????. ? ????? ?? ???? ???? ? ???? ???? ?????.
?? resizeImage
?? (??? ?? ???)? Jimp? ???? ??? ????? ????.
?? resizeImage (SRC, MaxWidth, ??) { ??? ??? ????? (res => { jimp.read (src, ??? ?? (err, image) { if (image.bitmap.width> maxWidth) { image.resize (maxwidth, jimp.auto); } image.quality (??); const previewimage = image.clone (); previewimage.quality (25) .Blur (8); const preview = await previewimage.getBase64Async (previewImage.getMime ()); res ({status : "success", image, preview}); }); }); }
? ????? ??? ??? ?? ????? ?? ????. ?? ?? ?? (??? ?)? ????? ?????? ?? ??? ???? ??? ?? ?????.
// ... ???? ??? ?? ...
?? 2 : Blurhash? ?? (? ? ?? ??)
?? ????? Blurhash? Base83 ???? ?? ?? ?? ????? ???? ?? ????? ? JavaScript? ????<canvas></canvas>
??, SSR (Server-Side Rendering) ??? ??? ? ??????. JS ? Sveltekit.
??? ??? Plaiceholder ???. ??? ?? ? ?? ??? Lambda ?? ?? ??? ??? Sharp? ????? ?? Base64 ????? ?????. ???? ??? ???? ?? ??? ?????? Blurhash? ??? ??? ?? ? ??? SSR ??????. ????? CSS? ???? ?? ??? ??? ???? ??? ??? ?? ? ? ????.
?? Blurhash ?? (?? ? ??) :
Sharp Library? Blurhash ????? ?? ? ? ????. AWS Lambda ??? ??? ?? ??? ??????.
"install-deps": "npm i && SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm i --arch=x64 --platform=linux sharp"
?? ??? Blurhash ????? ?????.
"blurhash"?? import {encode, isblurhashvalid}; const sharp = ?? ?? ( "Sharp"); Async ?? ???? getBlurhashpreview (src) { // ... (???? ?? ? ?? ?? ???) ... }
PreviewCanvas
?? ??? Canvas API? ???? Blurhash ????? ????? ??????.
??:
??? ?? ?? ??? ?? ?? ???? ??? ??? ?????. ??? ??? ????? ????? Plaiceholder? ???? ??? ??? ???? ??? ??? ???? ?? ?????? ? ??? ??? ???? ????? ? ??? ??? ?????. ????? ??? ??? ??? ?? ??? ??? ??????.
? ??? Sharp, Blurhash ? Lambda ???? ??? ??? ????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

CSS?? ????? ??? ? ?? ??? ????. 1. HTML ? CSS? ?? ??? ?????? ???? ?? ???? ?? ???? ??????. 2. ?? ??? ??? ?? ???? ???? ?? ?? ??? ?? ?? ??? ??????. 3. ??? ????? ???? JavaScript? ?? ???? ?????? ??? ?????. ? ?? ??? ??? ??? ????? ?? ??, ??, ??? ? ?? ???? ?? ?? ?? ??? ???? ?????.

CSS ???? ??? ? ??? ??? ????? ???? ??? ???? ???? ?? ?? ???? ????? ???????. 1. Flexbox ? ??? ??? ?? ???? ??? ??, ?? : ??? ?? ? ????? ??? ????. 2. Caniuse ?? ?? ?? ??? ??????. 3. -webkit-, -moz-, -ms-, -o- ? ?? ???? ???? ???? ?????. 4. AutoPrefixer? ???? ???? ???? ???? ?? ????. 5. ?? ????? ????? PostCSS? ???? BrowsersList? ??????. 6. ?? ? ???? ???? ?????. 7. Modernizr ?? ??? ??? ????? ??? ? ????. 8. ?? ????? ???? ?? ? ??? ????.

themaindifferencesbetweendisplay : ???, ??, andinline-blockinhtml/cssarelayoutbehavior, spaceusage ? stylingcontrol.1.inlineElementsFlowWithText, do n'tStartonnewlines, ingorewidth/height, andonlyapplyhorizontalpadding/margins —IdealforIneTeTexting

CSS? ?? ?? ??? ??? ??? ???? ???? SVG? ???? ?? ???, ?? ????, ??? ?? ?? ??? ?? ???? ??????. ??? ??? ????. 1. ?, ??, ??? ?? ?? ??? ?? ??? ?????. 2. ?? ?? ? ??? ???? ??? ? ????. 3. ?????? ?? ?? ?? ?? ????? ???? ?? ??? ?? ? ? ????. 4. ???? ???? ??? ??? ??? ????? ?? ? ??? ????. ???? ???? ?? ?? ?? : ? (50pxatcenter) ? ??? ?? ?? : ??? (50%0%, 100 0%, 0%)? ?? ????. ????

??? ?? ???? ???? ??? ??, ?? ??? ??? ? ? ????? ??? ??? ???? ???? ? ? ?? ? ? ????. 1. CSS ?? : ?? ??? ???? ???? ?? ??; 2. ????? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 3. ?? ??? ??? ??? ??? ?? ?? ???? ????????. 4. ??? ????? ??? ???? ?? ? ??? ??? ?? ??? ?? ?? ??? ????? ???? ?? ????.

CSS? ???? ?? ? ???? ???? ??? ?? ??? ?? ?? ?? ? ? ????. 1. Max width : 100% ? ?? : Auto? ???? ???? ??? ????? ???? ??? ??? ? ??????. 2. HTML? SRCSET ? ?? ??? ???? ?? ??? ??? ??? ??? ???????????. 3. ?? ?? ? ?? ??? ???? ??? ??? ? ?? ?????? ??????. ? ??? ?? ???? ?? ???? ???? ???? ????????.

CSS ??? ??? ?? ?? ?? ? ?? ? ?? ??? ?? ????. 1.px? ?? ??? ????? ?? ??? ??? ?? ??? ?????. 2.EM? ?? ????, ?? ?? ??? ??? ?? ?? ???? ??, REM? ?? ??? ???? ? ????? ??? ????? ?????. 3.VW/VH? ?? ? ???? ??? ??? ??? ??????? ?? ???? ?????? ???????. 4. ??? ?? ?? ? ??, ?? ?? ?? ? ??? ???? ???? ???????. ???? ??? ???? ??? ? ?? ??? ???? ? ????.

?? ????? CSS ?? ??? ????? ?? ?? ??? ??, ?? ?? ?? ??, Flexbox ? ??? ???? ?? ?? ? ?? CSS ??? ????? ??? ???? ???? ?? ????? ??? ?????. 1. ?? ??? ??? ???? ????. ???? CSSRESET ?? NALLER.CSS? ???? ?? ???? ???? ????. 2. IE? ?? ??? ?? ?? ?? ??? ????. ?? ?? : ?? ? ???? ??? ??? ???? ?? ????. 3. Flexbox ? Grid? Edge Case ?? Old ???? ??? ?????. ? ?? ??? ? AutopRefixer ??; 4. ?? CSS ?? ??? ???? ????. Caniuse? ???? ?? ?????????.
