Auto-fit image to a 1080p screen.
Posted: 2012-05-23T12:41:17-07:00
I'm working on slideshow software for School Lobby TV displays 1080p. The trouble is getting end-users to resize photos to fit the screen before uploading. Can ImageMagick resize uploaded images as follows:
1) Detect image size.
2) Fit the largest dimention to screen size: either width or height.
3) Create a fuzzy background using the original image as filler.
- Enlarge background, blur, lighten, underlay on original.
Original Image:
![Image](http://i45.tinypic.com/17cv28.jpg)
e.g. padding the sides:
![Image](http://i46.tinypic.com/fejkms.jpg)
e.g. padding the top:
![Image](http://i46.tinypic.com/29qfnux.jpg)
1) Detect image size.
2) Fit the largest dimention to screen size: either width or height.
3) Create a fuzzy background using the original image as filler.
- Enlarge background, blur, lighten, underlay on original.
Original Image:
![Image](http://i45.tinypic.com/17cv28.jpg)
e.g. padding the sides:
![Image](http://i46.tinypic.com/fejkms.jpg)
e.g. padding the top:
![Image](http://i46.tinypic.com/29qfnux.jpg)