ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: redhat 9 , fedora 5,6,7,DSL,Debian 3, mandrake 9.2 , knoppix 3.8, red hat 7.3
Posts: 38
Rep:
create image from a part of big image
hello to all, i'm wondering is it posible to
create an image(jpeg,png,tiff etc)
from bigger image.For example i have a big jpg and i want to create smaller image which will show part of only 20x20 px from my big image .
can this be done i c language or php ?(not thumbnailning!)
My understanding is that ImageMagick has bindings for both C and PHP
(along with many others), and its command-line tool convert certainly
will allow you to crop a piece out of an image.
If you're using PHP (maybe as part of a web application) then the GD library (which is usually supplied as a module for your particular distribution if it's not already compiled in) has lots of functions for image manipulation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.