Resize image in PHP using System.Drawing
1 post
• Page 1 of 1
Resize image in PHP using System.Drawing
The sample resizes an image from file "original.jpg" to "resized.jpg". It uses System.Drawing.dll .NET assembly and Bitmap class.
Notice the configuration "app.config", where assemblies needed to be loaded into PHP context are specified within <classLibrary> section. In order to run the sample as a website, copy the configuration into your "web.config".
The sample can be compiled and debugged from Visual Studio when using Phalanger Tools, or from the command line by running attached "build.cmd".
Notice the configuration "app.config", where assemblies needed to be loaded into PHP context are specified within <classLibrary> section. In order to run the sample as a website, copy the configuration into your "web.config".
The sample can be compiled and debugged from Visual Studio when using Phalanger Tools, or from the command line by running attached "build.cmd".
You do not have the required permissions to view the files attached to this post.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
1 post
• Page 1 of 1
Return to PHP/C# interoperability
Who is online
Users browsing this forum: No registered users and 1 guest