g_antonov Posted March 14, 2013 Share Posted March 14, 2013 Hello, I'm creating a module for PrestaShop1.4 which needs to upload pictures and want to resize them after uploading. How can I use the sizes and settings in Back Office > Preferences > Images ? Thanks! Link to comment Share on other sites More sharing options...
vekia Posted March 14, 2013 Share Posted March 14, 2013 you should use: ImageType::getImagesTypes(); this stacic function returns all image types all array with all fields, it mean that you've got informations like: `id_image_type` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(16) NOT NULL, `width` INT(10) UNSIGNED NOT NULL, `height` INT(10) UNSIGNED NOT NULL, `products` TINYINT(1) NOT NULL DEFAULT '1', `categories` TINYINT(1) NOT NULL DEFAULT '1', `manufacturers` TINYINT(1) NOT NULL DEFAULT '1', `suppliers` TINYINT(1) NOT NULL DEFAULT '1', `scenes` TINYINT(1) NOT NULL DEFAULT '1', `stores` TINYINT(1) NOT NULL DEFAULT '1' awsome, dont you think? 1 Link to comment Share on other sites More sharing options...
g_antonov Posted March 15, 2013 Author Share Posted March 15, 2013 Thanks. Link to comment Share on other sites More sharing options...
vekia Posted March 15, 2013 Share Posted March 15, 2013 it works for you? i think so, so in this case i decided to mark this topic as solved 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