본문 바로가기

Never give up

검색하기
Never give up
프로필사진 대기만성 개발자

  • 분류 전체보기 (132)
    • Flutter (50)
    • WEB (30)
    • WebRTC (6)
    • HLS (4)
    • Three.js (6)
    • 해왔던 삽질.. (36)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/10   »
일 월 화 수 목 금 토
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
Tags
  • Babel standalone
  • http live streaming
  • how to install cursor on ubuntu
  • KakaoMap
  • uint8array
  • react
  • Prism.js
  • uint16array
  • Flutter
  • append row
  • webrtc
  • Redux
  • Game js
  • hls.js
  • jszip
  • segment
  • multiple camera
  • code editor
  • Excel
  • typescript
  • html2canvas
  • cursor-ubuntu-installer
  • babel
  • REST API
  • node
  • HLS
  • localization
  • three.js
  • swagger-typescript-api
  • M3U8
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Blob (1)

Never give up

React - image resize example

최근에 이미지 사이즈 처리용도로 개발 해놓은 유틸을 만들었고 정리 + 포스팅용도 예제코드를 간단하게 만들어봤습니다 예제 필요없이 변환 부분만 필요하신 분들은 바로 아래 util부분만 확인하시면 되겠습니다 src/utils/imageResizeUtil.ts export interface ImgSize { width: number; height: number; } export interface ImgInfo extends ImgSize { src: string; } const imageResizeUtil = () => { const readImageInfo = async (img: File | string): Promise => { if (typeof img === "string") { const size ..

WEB 2023. 7. 16. 00:07
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바