According to the comments described in the question, I understood the problem and I believe that an interesting solution is to use Imagemagick, because of that I created this answer.
There is Imagemagick port for Windows and can be downloaded here:
Imagemagick for Windows
Some of the advantages of Imagemagick over any web service are:
Runs locally. There is no risk of the images in question stopping in search indexers. Remember that these web services receive your image, do the processing (probably with Imagemagick or similar) and return a processed image. There is no guarantee that the images stored there can not one day stop in search indexers like Google, etc. This same principle applies to the famous PDF to DOC converters, etc.; Therefore, if the file to be converted is confidential, never use any web service.
Local processing tends to be faster, since these services, because they are free, usually do not run on powerful servers;
You can process in a batch of images (for example, a folder with multiple Jpgs). Very useful when you want to send your images to Picasa, for example. You reduce it to 1600x1200, which makes uploading faster;
The program should be used per command line, see some examples below:
mogrify -resize 1600x1200 *.jpg
The above example resizes all files in the current folder to 1600x1200 resolution. Note that files after processed will have the same name as the original (files will be lost). Therefore, ensure that the command will not run in the original files.
mogrify -path imgs/ -resize 800x600 *.jpg
The above command will reduce the files in the current folder to 800x600 resolution, however the processed files will be saved in the imgs folder (which, in the above case, must be inside the current folder). Thus, there is no risk of the original files being modified.
There are several other options on the command line and this is one of the great advantages of Imagemagick.
Some examples of using Imagemagick
More Examples
As much as you said a PHP script is not a solution, I was curious to know why. In your case, if the application is running on a Linux server, you could easily solve it with Imagemagick, see: http://www.imagemagick.org/script/mogrify.php. You can even resize images in batch instead of one by one.
– cantoni
Is that I need to have the file (.png/.jpg/.gif), to upload, and not a php script, what I need is the image (file) resized.
– Alexandre Lopes
Excuse me, but I still don’t understand your problem. Is the site yours or are you a user of this site? I don’t think the links below will help you, because you can only resize one image at a time. For three images, three distinct uses will be required in both options listed in the answer below.
– cantoni
The @Cantoni remark is the definition of XY problem...
– brasofilo
I use the Wordpress. I am the owner of the site, but when I send an image to highlight it is with the original resolution, if it is an image 4.000px x x 2.000px it will be very heavy, it is not necessary an image of this size, what I want is just reduce the resolution of the image (pixels), thus making the images light. Or you know some wordpress plugin that helps me in something?
– Alexandre Lopes
@Alexandrelopes, according to your comment above, I created an answer, because I found it more appropriate for the context of your question.
– cantoni
I recommend that @Alexandrelopes also read about the XY problem, since it has been common this kind of question on Sopt.
– Bacco