티스토리 뷰
http://imageresizing.net/ 으로 썸네일을 만들면
세로 사진에서 사람 얼굴이 위쪽에 들어있거나 아래에 있을 경우
기본값으로 mode=crop 주면 중간을 기준으로 잘라내서 얼굴없는 귀신 사진을 만들어 내는데
이런 메뉴얼적인 자동 이미지 자르기는 한국의 여러 클라이언트들이 싫어한다.
face detection (안면인식)을 통해서
썸네일을 만드는 플러그인이 위의 ImageResizer에도 존재하지만
Elite 에디션에서 가능한데,
가격이 무려...한화로 9천만원이 넘는다는...
무시무시한 사용금액을 우회할 수 있는 방법이 뭐가 있을까?
(PHP는 방법이 많지만...)
구글링 끝에 관련된 Server-side 가능한 썸네일 유틸리티를 발견하였는데
결국 저 위의 ImageResizer와 같은 셋팅과 방법으로 돌아가는 사촌지간.
Eksponent CropUp
http://cropup.codeplex.com/
에서 다운받고 나오는 *.dll 들을 모두
사이트 Root/bin 폴더에 넣어줍니다.
사이트 Root/web.config 파일을 텍스트 편집기로 열고 아래와 같이 추가/편집.
IIS6 와 Cassini (Visual Studio's default F5/run web server for web projects) 에서는
IIS7 와 IIS7 Express 에서는
사용법은 ImageResizer와 비슷합니다.
쿼리스트링 기본 사용 예)
*.jpg?mode=crop-up&width=100&height=60
쿼리스트링 ashx 매핑 사용 예)
*.jpg.ashx?mode=crop-up&width=100&height=60
아래는 원문입니다.
A demo is available at http://cropup.test.eksponent.com/
While waiting for the documentation have a look at the source of the demo project.
The new version is made as an plugin for ImageResizer.NET.
To enable it add this to your resizer configuation in web.config
The new version is backwards compatible, however you need to remove the Eksponent.CropUpModule from your web.config if you added it with the previous version.
Another important feature is that the algorithm is also available entirely client side with a JavaScript implementation. This is especially useful for responsive web designs.
You don't need the "CropUpUrls" module. It only makes your URLS nicer
THE BELOW APPLIES TO THE OLD VERSION
This project is so far a nicely looking, user-friendly data type for Umbraco, powered by a HttpModule that wraps ImageResizer.NET, covered with CropUp-algorithm awesome sauce.
This is the interface. You can drag the red "focus dot" around and highlight an important area of the image.
If you need something in the size 100x100 it will crop until it meets the highlight area. Then it will start scaling down. If a highlight area is not specified it will scale down but ensure that the "focus dot" is shown proportionally to its location
This is the difference between weighted autocropping and normal autocropping.
When you need a URL for an image you use CropUpModule.GetImageUrl(path, args).
Example:
If you need a specific named cropping (as defined in web.config) that the user may have overriden you go:
This requires a reference to the Eksponent.CropUp.dll assembly. You have that in your bin directory as it's part of the package.
You can use it in your Umbraco installation by following these steps:
Installation instructions
1) Download binaries and put them in ~/bin.
2) Goto Developer->Data Types, right click and then "Create". Pick "Eksponent CropUp" and hit "save".
3) Leave the pre-filled value of "umbracoFile" and hit "save" again.
4) Goto Settings->Media Types->Image and add an property that uses the data type.
5) Edit your web.config and add this
6) Keep editing your web.config file and add this HttpModule:
For IIS6 and Cassini (Visual Studio's default F5/run web server for web projects)
For IIS7 and IIS7 Express
7) Create an image and start CropUp'ing.
Last edited Jul 20, 2012 at 7:52 AM by nielskuhnel, version 12
'OS-서버-서비스 > Windows' 카테고리의 다른 글
Genymotion unable to connect 오류로 강종 후 Virtualbox guru meditation Error 발생시 (5) | 2014.03.13 |
---|---|
재부팅 없이 윈도우 환경변수 설정 setx PATH (0) | 2013.12.09 |
윈도우에서 Samba 접속시 "동일한 사용자가 둘 이상의 사용자 이름으로..." 오류 (0) | 2013.07.01 |
윈도우 부팅 USB 메모리 디스크 관련 경험 기록 (0) | 2013.05.22 |
IIS ASP 썸네일 생성 ImageResizer (0) | 2013.05.15 |
- Total
- Today
- Yesterday
- Make Use Of
- How to geek
- 인터넷 통계정보 검색시스템
- 트위터 공유 정보모음
- 웹표준KR
- 치우의 컴맹탈출구
- Dev. Cheat Sheets
- w3schools
- Dev. 조각들
- ASP Ajax Library
- CSS Tricks
- WebResourcesDepot
- jQuery Selectors Tester
- DeveloperSnippets
- Smashing Magazine
- Nettuts+
- devListing
- 웹 리소스 사이트(한)
- Mobile tuts+
- Dream In Code
- Developer Tutorials
- CSS3 Previews
- 자북
- 안드로이드 사이드
- Code Visually
- Code School
- SQLer.com
- 무료 파워포인트 템플릿
- iconPot
- Free PowerPoint Templates
- Design Bombs
- Web Designer Wall
- 1st Webdesigner
- Vandelay Design
- 무료 벡터 이미지 사이트들
- Tripwire Magazine
- Web TrendSet
- WebMonkey
- 윤춘근 프리젠테이션 디자이너 블로그
- cz.cc 무료 DNS
- [웹하드] MediaFire
- [웹하드] DivShare
- 한컴 인터넷 오피스
- ASP
- IOS
- Android
- laravel
- 안드로이드
- CSS
- iphone
- centos
- Docker
- nodejs
- Debug
- Mac
- 한글
- nginx
- Linux
- javascript
- PHP
- JSON
- classic asp
- IE
- Wordpress
- iis
- Chrome
- mssql
- sencha touch
- JQuery
- 워드프레스
- Prototype
- git
- API
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |