kode-team / image-resize Goto Github PK
View Code? Open in Web Editor NEWImage resizer for javascript
Home Page: https://kode-team.github.io/image-resize/
License: MIT License
Image resizer for javascript
Home Page: https://kode-team.github.io/image-resize/
License: MIT License
File
타입으로 된 객체를 읽어와서 사용할 수 있으면 좋을거 같다.
폼으로 가져오는게 좀 말도안되기도 하고..
아니면 blob
타입도 지원되어야 할지도..
나중에 지원해봄직하다.
updateOptions() 메서드를 체인으로 작성할 수 있다고 보는데 이를 위해서 this
를 리턴해줘야할거 같다.
resizeImage.updateOptions({width: 300}).play('image.jpg');
예전과 다르게 요즘 브라우저 옵션이 안티알리어싱 처리가 잘 되는거 같다.
그래서 계단 현상 보다는 흐리게 보이는 현상이 더욱 두드러져 보인다.
괜찮은 형태의 샤픈 알고리즘을 찾아봐야겠다.
offScreenCanvas
API 라는게 있는데 이것은 화면상에 보이지 않고 캔버스 처리를 해주는 API라고 한다.
이것을 활용하면 좀더 성능에 잇점을 줄 수 있어보인다.
타입스크립트에 대하여 좀더 적응이 된다면 포팅작업도 해보고 싶다.
exif 정보를 넣어주는 옵션을 만들어야함.
무조건 집어넣기도 그런것이 썸네일 이미지로 만들기 위하여 정보를 최소화 하는 경우도 생기기 때문에 선택권을 줘야한다고 봄
get()
메서드에서 canvas
엘리먼트가 빠져있는걸 이제서야 깨달았다.
캔버스 엘리먼트에서 리사이즈를 할일도 있는데..
나중에 지원해줬으면 좋겠다.
I am getting an error using this library:
"ImageResize.es.js:201
} else if (src instanceof File || src instanceof Blob) {
^
ReferenceError: File is not defined"
File is not available for node.js so that makes sense. Is this library supposed to be supported for node.js use?
please how i can host it as website , i try but it give me error 405
https://rollupjs.org 으로 빌드해볼 예정
프로젝트파일이 크지 않기 때문에 간단하게 빌드할 수 있는 방법을 찾아야함
imageResize.updateOptions({
width: 0,
})
위와같은 모습으로 옵션을 넣으면 적용이 안되는 현상이 발생한다.
타입체킹에 허술한 부분이 존재하는데 수정되어야 할 필요가 있다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.