<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/crop</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 05:01:42 GMT</pubDate>
<item>
<title>(PHP) Image Resize on the Fly - brownrl</title>
<link>http://snipplr.com/view/71224/image-resize-on-the-fly/</link>
<description><![CDATA[ <p>This is my simple image resizer on the fly thing. 

-- WARNING --
Resizing and showing images on the fly could potentially kill your server or make the website slow.

Ideally, this should save the resized image in a cache. However, more often than not this method just works, no one complains, and I don't have to make some writable caching directory thing.

If anyting this could give you a good start on how you really want to handle your images.</p> ]]></description>
<pubDate>Sat, 18 May 2013 08:21:43 GMT</pubDate>
<guid>http://snipplr.com/view/71224/image-resize-on-the-fly/</guid>
</item>
<item>
<title>(PHP) Crop Image and Display it using PHP - welancers</title>
<link>http://snipplr.com/view/66802/crop-image-and-display-it-using-php/</link>
<description><![CDATA[ <p>Displays a selected area of the image. In this example provided, it picks up from the upper left 100px x 100px</p> ]]></description>
<pubDate>Sat, 18 Aug 2012 15:52:26 GMT</pubDate>
<guid>http://snipplr.com/view/66802/crop-image-and-display-it-using-php/</guid>
</item>
<item>
<title>(Bash) ImageMagick Crop &amp;amp; Resize images - artaserse</title>
<link>http://snipplr.com/view/64005/imagemagick-crop--resize-images/</link>
<description><![CDATA[ <p>simple command that resize and crop, if necessary, an image, centering the image.</p> ]]></description>
<pubDate>Sat, 17 Mar 2012 20:28:03 GMT</pubDate>
<guid>http://snipplr.com/view/64005/imagemagick-crop--resize-images/</guid>
</item>
<item>
<title>(PHP) PHP GD Thumbnail Generator 0.1 - dillonchr</title>
<link>http://snipplr.com/view/57111/php-gd-thumbnail-generator-01/</link>
<description><![CDATA[ <p>Tweaked from the icant.co.uk thumbnail generator</p> ]]></description>
<pubDate>Mon, 25 Jul 2011 14:39:36 GMT</pubDate>
<guid>http://snipplr.com/view/57111/php-gd-thumbnail-generator-01/</guid>
</item>
<item>
<title>(Python) Slicing images with Python and PIL - miohtama</title>
<link>http://snipplr.com/view/56380/slicing-images-with-python-and-pil/</link>
<description><![CDATA[ <p>Create smaller tiles out of a larger bitmap image</p> ]]></description>
<pubDate>Mon, 11 Jul 2011 05:47:01 GMT</pubDate>
<guid>http://snipplr.com/view/56380/slicing-images-with-python-and-pil/</guid>
</item>
<item>
<title>(DOS Batch) Automatically trim/remove white/black/any borders from images - mld15</title>
<link>http://snipplr.com/view/52310/automatically-trimremove-whiteblackany-borders-from-images/</link>
<description><![CDATA[ <p>Worked great for trimming margins in scanned comics and books, much easier and faster than complex photoshop scripts. :)

1. Download &amp; install ImageMagick from http://www.imagemagick.org/script/binary-releases.php#windows. 
This is a command line utility to work with images. No ads, toolbars and other crap. It is freeware and open source.
You need file named ImageMagick--windows-static.exe

2. Create new file conv.bat with this snippet inside in a folder with images and launch it.
This will automatically trim all images in this folder and all its subfolders.

3. Optionally you can set different extension if you need to crop something other than jpegs's, and increase color tolerance - to detect larger borders. There are also other settings, like cropping only borders of certain color - you can read full documentation at http://www.imagemagick.org/Usage/crop/#trim .

It will also work on Linux and Mac since ImageMagick is a crossplatform tool, but you will have to modify .bat file to be compatible with Bash syntax.</p> ]]></description>
<pubDate>Tue, 19 Apr 2011 21:01:59 GMT</pubDate>
<guid>http://snipplr.com/view/52310/automatically-trimremove-whiteblackany-borders-from-images/</guid>
</item>
<item>
<title>(jQuery) jQuery Crop and Constrain to square dimensions - adamcoulombe</title>
<link>http://snipplr.com/view/47453/jquery-crop-and-constrain-to-square-dimensions/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 19 Jan 2011 03:00:12 GMT</pubDate>
<guid>http://snipplr.com/view/47453/jquery-crop-and-constrain-to-square-dimensions/</guid>
</item>
<item>
<title>(Bash) Generate Thumbnails with all same resolution (Cropped) - abhiomkar</title>
<link>http://snipplr.com/view/38123/generate-thumbnails-with-all-same-resolution-cropped/</link>
<description><![CDATA[ <p>Input: .jpg images of current directory\r\n\r\nOutput: the thumbnails will be generated in \'thumb\' folder</p> ]]></description>
<pubDate>Sat, 31 Jul 2010 07:33:43 GMT</pubDate>
<guid>http://snipplr.com/view/38123/generate-thumbnails-with-all-same-resolution-cropped/</guid>
</item>
<item>
<title>(PHP) Corta los primeros n caracteres de un texto, pero busca el espacio para no cortar una palabra - mfigge</title>
<link>http://snipplr.com/view/37382/corta-los-primeros-n-caracteres-de-un-texto-pero-busca-el-espacio-para-no-cortar-una-palabra/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 14 Jul 2010 23:54:48 GMT</pubDate>
<guid>http://snipplr.com/view/37382/corta-los-primeros-n-caracteres-de-un-texto-pero-busca-el-espacio-para-no-cortar-una-palabra/</guid>
</item>
<item>
<title>(Perl) Split (crop) double page PDFs in two - iblis</title>
<link>http://snipplr.com/view/18924/split-crop-double-page-pdfs-in-two/</link>
<description><![CDATA[ <p>Each page is split vertically in two pages. Crop and media views are set accordingly. Text layer should be preserved. 
Takes a path to a PDF file as argument and produces a cropped PDF in the same location.</p> ]]></description>
<pubDate>Thu, 27 Aug 2009 21:27:13 GMT</pubDate>
<guid>http://snipplr.com/view/18924/split-crop-double-page-pdfs-in-two/</guid>
</item>
<item>
<title>(PHP) Simple PHP Image Crop - aristoworks</title>
<link>http://snipplr.com/view/14574/simple-php-image-crop/</link>
<description><![CDATA[ <p>This is a simple script that will allow you to crop an image that you upload from a form.</p> ]]></description>
<pubDate>Wed, 29 Apr 2009 10:48:16 GMT</pubDate>
<guid>http://snipplr.com/view/14574/simple-php-image-crop/</guid>
</item>
</channel>
</rss>