Skip to content
Advertisement

Tag: image

Laravel Image Quality

Every time I upload a new image to my server, this image is resized. The main issue I’m having is that the image is losing a lot of quality. This is the current code: $name1 = str_random(10); …

Download images from html and keep the folder structure

I need to have download over 100.000 pictures. The Pictures have : .png, .jpg, .jpeg, .gif format. I have the approval to use those pictures. they have provide me an XML file with all the url`s The url have the structure otherdomain/productimages/code/imagename.jpg/.png/.gif I have all the codes in an php array called $codes[] I have also the full path of

Image in text line is slightly offset

I’m trying to make a clickable button by treating a hyperlink with CSS and adding a little icon next to it. Everything but one detail works great; namely the icons which are slightly offset from the text on the button. It looks as follows: As you may see, the white icons (12x12px) on the buttons are slightly higher than the

Can I add a base64 image to the $_FILES array?

Is there a way to add a base64 image string to the $_FILES array (the array that you get when you upload a file)? Basically, I want to fake a file upload from a base64 string. The base64 string comes from an email attachment. I don’t wish to use file_get_contents(), because I want to save the image in a database

PHP – imagecreatefromjpeg uses 100M memory for <1M image

The image is less than 1MB but the size is roughly 5500×3600. I am trying to resize the image down too something less than 500×500. My code is pretty simple. I found out that to process this image, the imagecreatefromjpeg uses 100M using memory_get_usage. Is there a better way to do imagecreatefromjpeg? is there a workaround or a different function

Secure image upload in php

I am making an image upload function which I can re-use in my code, which has to be 100% secure. Please tell me if you can spot and security holes in my initial code; UPDATE This is how far I’ve gotten with your help and some research, please tell me what you think. I don’t mind much about the speed,

Advertisement