DareToProvoke Posted January 26, 2009 Share Posted January 26, 2009 Hey there,Hello to the community as it is my first post.We are about to start our new shop and decided to give PrestaShop a go, and everything was going smooth untill we've stumbled upon a little problem. Design of our store relies purely on the product images and it's critical for us that each picture can be cropped and scaled for each of the picture sizes used.In spite of all the great job you've done here the manual image cropping plugin used in the control panel seems like a joke looks like a beta of a beta. Lack of possibility of scaling the image kills the usability of it. What I'm looking for and was wondering if maybe someone played with this already and by any chances managed to replace this cropping plugin with Deep Liquid's http://deepliquid.com/content/Jcrop.html, which I believe to be ultimate cropping machine . Used it in one of my projects though I'm more of front-end developer and can't figure out how to/where to alter the appropriate classes/functions/modules in PrestaShop back-end to accept more data (x1,y1,x2,y2,scaleToWidth,scaleToHeight). First 4 params are obvious and the last two would either scale up or down the image depending on if the scaleToWidth/Height is smaller then the delta x1/x2 and delta y1,y2 accordingly.If nobody have done that yet I'd be grateful for help with finding where to alter the PHP to accept this data and dunno, maybe use PHP GD imagecopyresized();Will be glad for any help, friend who is more into PHP/backend is coming to visit me on this thursday and we'll fix it if I won't come with anything sooner so regardless of how much we'll manage to do till then I hope to share this with the Presta community as soon as it's confirmed to work flawlessly!regards and keep up the great workThomasDTP(PS. wait to see our project, sexiest (literally!) shop on presta till date! ) ) Link to comment Share on other sites More sharing options...
DareToProvoke Posted January 27, 2009 Author Share Posted January 27, 2009 Was digging some more and found out that the cropper used in Presta is quite capable - dunno why it's functionalit is crippled (oryginal demo page for this plugin http://www.defusion.org.uk/demos/060519/cropper.php?demoType=ratioFourThree&image=castle&formSubmit=Load+demo) and was wondering if it is only my issue or is was it done on purpose? Apart of that I've noticed that you are mixing many different javascript libraries, wouldn't be it easier for compatibility and stability to choose just one? jQuery would have been my choice back to diggin in hope I'll manage to fix itregards Link to comment Share on other sites More sharing options...
DareToProvoke Posted January 28, 2009 Author Share Posted January 28, 2009 posted a solution in modules sub-forum if anybody needed it as much as I had check it out over here http://www.prestashop.com/forums/viewthread/11496/ Link to comment Share on other sites More sharing options...
netcrawle Posted February 13, 2010 Share Posted February 13, 2010 There is nothing wrong with the cropping in Prestashop, it works the way its intended / should. Whats a major flaw though, is the lack of beeing able to scale the images before they're cropped.For perfect thumbnailing (IMHO) these steps should be present:1. You've assigned width/height-attributes2. You upload a picture3. Prestashop scales the image down to best possible fit (be it width or height)4. You're presented with a cropper that lets you crop away whats overflowing (be it with or height-wise)Don't know about the rest of you guys, but this would be the perfect way for me Link to comment Share on other sites More sharing options...
petete2008 Posted January 25, 2014 Share Posted January 25, 2014 Do you know any module? The solution should be compatible with all browsers (html5 support or not) Link to comment Share on other sites More sharing options...
Recommended Posts