Full-Demon Posted September 4, 2007 Share Posted September 4, 2007 Hi all, PHP is a bit too slow for my project to resize images. Is it possible to call an executable via PHP which will resize the images? A C/C++ program to be exactly. Can I use GD2 in C? And can I run a program from the server with an argument (path top the file)? And would it be good or bad if I would use external programs? Thanks Link to comment https://forums.phpfreaks.com/topic/67941-using-c-to-resize-images/ Share on other sites More sharing options...
davidz Posted September 4, 2007 Share Posted September 4, 2007 Perhaps this: http://us.php.net/system Link to comment https://forums.phpfreaks.com/topic/67941-using-c-to-resize-images/#findComment-341520 Share on other sites More sharing options...
trq Posted September 4, 2007 Share Posted September 4, 2007 Any extension that php uses to resize images is written in C, i'm not sure exactly what your issue is, but calling a C program from within php will not necessarily speed the process up. Link to comment https://forums.phpfreaks.com/topic/67941-using-c-to-resize-images/#findComment-341599 Share on other sites More sharing options...
btherl Posted September 5, 2007 Share Posted September 5, 2007 The details of php's usage of the GD library are here It supports GD2, and like thorpe said, will be no slower than using the GD library via an external program. gd_info() will tell you details of the library your php is using currently. Link to comment https://forums.phpfreaks.com/topic/67941-using-c-to-resize-images/#findComment-341765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.