RomsWebDesign Posted December 30, 2013 Share Posted December 30, 2013 Hi guys, I would like to know if there is a way to create a image type from a module installation. If so, how ? Thanks Link to comment Share on other sites More sharing options...
vekia Posted December 30, 2013 Share Posted December 30, 2013 you can create image with imageType class, you can do it with the same code as for other objects $object = new ImageType(); $object->name = 'example'; $object->width = '200'; ... ... $object->add(); Link to comment Share on other sites More sharing options...
RomsWebDesign Posted May 7, 2014 Author Share Posted May 7, 2014 (edited) ok thanks. After that I would like to generate categories images with this new image type. When I talk 'image type' I would like to tell "image format". In my module I want to create a new image format for categories and generate images too. How can I do that ? Edited May 7, 2014 by RomsWebDesign (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 7, 2014 Share Posted May 7, 2014 if you create new imagetype then regenerate thumbnails, pictures will be created automatically hope that this is what you're asking for Link to comment Share on other sites More sharing options...
RomsWebDesign Posted May 7, 2014 Author Share Posted May 7, 2014 I do not want any user intervention. I want everything to be automated during installation of the module. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now