I am working on a project that resizes images using the PHP GD library . I would like to add the ability to use seam cutting to resize images, but I do not want to require something like ImageMagick (which can perform seam cutting using the liquid scaling function ) to do this.
Since there are no built-in thread functions in GD, is there a way to perform image threading using the PHP GD library or other built-in PHP functions? Alternatively, did you know that cutting seams will eventually be baked in GD?
While you can implement this with GD, it is best to control if you can manage the server environment to create an external script / program to crop the image. PHP will be a huge bottleneck performing such calculations. Even basic matrix transformations pose a serious risk of getting the maximum execution time specified in PHP configurations.
I do not understand why this is not possible with GD, but I can say that it will be slow.
Imagemagick is open source, so I think you could translate the function into PHP.
Source: https://habr.com/ru/post/1277628/More articles:How to enforce function signatures in a function declaration set in C? - cWhat would you choose for your ASP.NET Webapp; nHibernate, Linq or SubSonic - ormDo you have any idea of ββloading Ajax images for use with jQuery? - javascriptColor coherence vector in C # - c #Is it possible to dynamically generate SVG images on websites? - svgSelf passwords? - algorithmHow to document WCF web service in technical specification? - c #Completing an Asynchronous Delegate Call with Partial Type Information - c #What is a good way in PowerShell to check the IP address switcher on a web server? - powershellASP.NET website version 3.5: what does the "vwd.webinfo" file do, exactly? What about the bloated web.config file? - visual-studio-2008All Articles