Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to change image size before uploaded on server/mysql database, As its for member, so member can uploaded big images in size and i want to prevent and assign a new image size of their images.
I need it in PHP.
Thanks
Resizing an image in php without uploading first is not possible as php only runs on the server side. It can be done with js though, there are a lot of libraries that can help you out, like Jimp, Jcrop and Processing.js.
If you really want it in php than the image has to be uploaded first and than you will be able the resize the image with imagecopyresized function for example.
The php manual has an example here
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there any way to display images and / or videos on a website and not allow visitors to download or copy them?
I once saw a website where I tried to download an image, but then it was impossible to open it on my computer because the file type was not recognized on my computer!
Is there any way to encode the files, maybe?
Thank you all.
If you can show the images and videos in a browser, they will always find a way to copy these. You can't have the cake and eat it.
The only thing you can do is to make it harder for the newbie.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
im new in Webdevelopment and I wanted to ask you ("THE EXPERTS") if you could guide me or give some hints how to do following Webpage:
I want to upload 3-5 Images, place them automatically horizontally on a PDF and let the user download the PDF. I don't want to store the images so after you reload the page the images should be gone.
Could you help me how to realize such webpage? Or atleast which way I should use? Jscript, html5, php etc...
Best regards
Machete
You are looking for a pdf-libary like FPDF.
Especially take a look at the Image() function (Documentation).
quick and dirty, create a php script that executes something like this on the shell:
convert image1.png image2.png image3.png output.pdf
you need to have imagemagick installed.
There are more elegant ways to do that.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to upload a very large csv file into database,i.e, the size of the csv file will be more than 1 GB. I want to upload all data from csv file to mysql table as quick as possible. Please suggest me tha is it possible or not?
And i want to use JQuery/Ajax for doing this job?
Webservers have a max-execution time and a max-upload-size in php.ini. You probably need to edit these settings. I would recommend to use a chunked upload function.
Here is a nice upload lib that supports chunked upload with jQuery + PHP it's called: plupload
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm building a iPhone Application which displays some photos. First in a UICollectionView as a thumbnail then bigger in fullscreen.
For better loading behavior I would like to load smaller images first for the thumbnail part. Now: Should I do this via PHP and resize the existing big image or should I save a second image on the server XXX_thumbnail.png and load this one?
Thanks for your tip.
Chris
Resizing an image can be quite an intensive process for the server, especially with larger images. Imagine if 1000 users hit it at the same time. You absolutely should only do this once per image, and save it for later requests. Whether you pre-render all thumbnails or not is another matter, but executing a file_exists is pretty cheap. You can just render them once, at the time they are requested. All depends how you want to access them (e.g. through a script or just the thumbnail url directly)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm creating a form which should allow a user to upload a photo (along with other form elements such as text boxes) but I'm in need of a PHP script which will allow the photo to be uploaded, and if the image does not conform to specific dimensions to be resized and then cropped (from bottom center of the image).
Can you recommend any scripts available?
A fast search gave me the following results.
If I was you I would use Jcrop with my own uploading script.
php- Edit upload file + Crop image
upload and crop image before sending it to the server
Image uploader + crop
I would like to recommend this example.
http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/
Good luck.
Prasad.
I recommend upload.class.php. It is the best class for handling images.
You can find it here:
http://www.verot.net/php_class_upload.htm