Creating an Image manipulation block

Permalink 1 user found helpful
I would like to create a image manipulation block, such as it load an image from the local system and then perform some GD operations on it. After that it will loaded into the page. I need to perform the GD operations on the image when the block add button is clicked. What should I do for that. Expect your help..
Thank you.

rajeshpuliyoor
 
jordanlev replied on at Permalink Reply
jordanlev
Can you explain a bit more about what you want to do? Do you want the manipulated image to be saved back to the file manager, or do you want it just for display in that one spot where the block is added?
rajeshpuliyoor replied on at Permalink Reply
rajeshpuliyoor
Actually I want to create a block in concrete5. That block should have the facility to load two images or one image and a specified string. After that it can combine the the images or string in the image,(ie, we need to convert the string to image first then place that into the image). After that all those images,and newly created image should store in the file manager. Location of the images and the string should store in the table for that block.
jordanlev replied on at Permalink Reply
jordanlev
I don't know exactly how to do this, but I can point you in the right direction.

Look at the built-in Image block's code to see how to let users upload images and/or text.

Then in your block's controller, use the php image manipulation functions (seehttp://www.php.net/manual/en/refs.utilspec.image.php... ) to modify the images, then re-save them to the file manager (see code in concrete/controllers/install.php for examples of how to import images), then save the newly-imported image's file ID to your block's database record.

Good luck!

-Jordan
rajeshpuliyoor replied on at Permalink Reply
rajeshpuliyoor
thank you for your valuable suggestions. I will try to do these things. Also one thing i need, your advice to understand the concrete5, i am new in this field i didn't get any technical working of this concrete5. I read the documentation but i can not understand those things in right way, may be it was my lack of knowledge in the field. So if you have any difference material or the way to approach to study the concrete5, pls share with me. Once again thank you for your advice, i expect more from you...
jordanlev replied on at Permalink Reply
jordanlev
Nobody can give you a full explanation of this on a forum because it is such a huge topic, and you really need to have an understanding of HTML, CSS and PHP already to be able to develop with Concrete5.
Do you know how to style a page with HTML and CSS? If not, I suggest you learn that first.
Do you know basic PHP programming? Can you code up a simple php form, validate and process the data, and save it to a database? I would suggest learning that next.
Once you have a better understanding of these foundations, then it makes more sense to learn how to use those within Concrete5.

There are thousands of tutorials about this stuff online, just google around.

Good luck!
rajeshpuliyoor replied on at Permalink Reply
rajeshpuliyoor
i know HTML,CSS and PHP (basic), but not a complete knowledge, i think have to learn many things, any way i will do the same and take time to concentrate on the these things. i visited your site i got your mail id, i will send a test mail. i will, keep in touch with you because i need your helps

Thank you..