I have an image with a transparent background that I’d like to outline with a 5px border. In photoshop, I can stroke it to achieve this. I’ve tried using borderImage but it won’t outline the penguin. …
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); …
How to keep the previous uploaded image (in db) after submitting a form without selecting a new image to be uploaded
I have a simple form for creating an article: Title,image,category,body , etc.. My problem is with the image input. Selecting a new one and submitting everything works fine: the image is being uploaded to the server the title of the image is being saved to db and i can print it in the article. By editing the whole form, filling
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
Converting an image into a cartoon using php image magick
Im wondering does anyone know of any good tutorials that can help me learn to convert a human image to a cartoon using php image magick. I have found this link, http://www.fmwconcepts.com/imagemagick/…
php imagick won’t save PNG compressed but shows compressed in browser
I have the following code in PHP to take the screenshot of first page of the PDF. This code produces the PNG of 62kb only in the Google Chrome’s Resource monitor tab. But the image which is written by Imagick() is above 114kb. Just to make sure image isn’t compressed and or any other issues i have used a online
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,