Is there a way to do this using fread/fwrite? I have the exact coordinates of the rectangle from the image I want to crop.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most image files are more complex than just an array of pixels. They often contain headers with metadata and compress the image data in some way.
Editing them is often done with some sort of library, such as Magick++. These libraries contain classes and functions for