How to compress image using Laravel Package Image intervention [closed] - laravel

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 2 years ago.
Improve this question
Sorry for this stupidity question. I'm developing a classified website in Laravel here it is link salebaba.com Please visit
When users post an Ad I'm creating 3 sizes of images (Original , Mid , Thumb) for optimizing my website speed. But Now I want to compress image when it is uploading. I'm using Laravel Image intervention to resize image.
How can I compress image using Laravel or Image intervention to optimize Images?
Your suggestions are important

You can try to use
public Intervention\Image\Image encode([mixed $format, [int $quality]])
->... // any other methods from image intervention
->encode('jpg', 75);
The quality parameter is optional but is required in case of jpg.So you can check the format if it is jpg or not.
You can read more about it from encode docs

Related

which better unclickable or clickable images [closed]

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 2 years ago.
Improve this question
are there difference between unclickable or clickable images?
for example page load time and another things because I see people use them
So I was wondering which one is better
unclickable images give you a better page load time, if you want a page to load fast make them unclickable since page load times really influence for example customers when buying stuff online.
please see :
https://smallbiztrends.com/2019/02/page-load-speed-impacts-buying-decisions.html

Embedding camera readable data on an image [closed]

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 9 years ago.
Improve this question
I have a set of images on a data set and I want to create an application(on android initially) so that the application would be able to take an image and match it with an image on my data set. I tried using image recognition algorithms but I had very poor recognition chances. Is there any way to unobtrusively embed data on the image itself such that when a printed version of the image is scanned by the application, it would be able to extract the embedded data? I need some direction in this regard because I seem to be punching in the dark since I haven't worked on anything like this before.
Thanks
You can try with OpenCV4Android, here is the introductory tutorial. Following SO will give you some more- Looking for OpenCV android tutorial

Drupal Image styles thumbnail, medium, large to default dimenssions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
My drupal creates thumbnails of my uploaded image (thumbnail, medium and large). How can I stop drupal from creating these?
I don't want to have redimensioned images, I want original size.
PS: Drupal creates 3 images per uploaded image, so, for me are lots of nodes.
Thank you very much in advance!
The image styles isn't generated until the first time you use them. So, if you only use the original image in your theme and also inside your administration the thumbnail, medium and large images will never be created.
To use the original image in the backend you will have to go to structure/types/manage/<contentent_type>/display and change the image style that is used for displaying your field.

File with JPG extension acts like a GIF with a cat shooting a gun with heavy kickback [closed]

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 10 years ago.
Improve this question
I recently came across this image which seems like a normal GIF:
Even imgur stores it as a GIF when I uploaded it here.
But when I saw the link, it was a JPEG image, unlike a GIF than what I had expected!
Here's the link: https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash3/559307_325955130827518_630404691_n.jpg
This is actually a .gif - look at the headers of the HTTP response.
The MIME type is image/gif
So it doesn't matter what the URL says at the end - it's the MIME type that determines how your browser interprets it.
A lot of sites use this (I guess to throw off harvesters?) imgur.com often reports the wrong extension, for example. Try going to i.imgur.com/yourpic.txt - it should still show up as a proper gif.

User avatar dimension standards or specifications [closed]

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 7 years ago.
Improve this question
We have seen a user avatar will have different sizes on Facebook, Twitter, etc.
For example, Twitter has 3 different avatar sizes: 24x24, 48x48, 128x128; Facebook mainly has 50x50 and 180x180>.
I am wondering if there is a standard thumbnail size that a website should adopt, or it's all solely based on the design?
Thanks.
Like you say its just down to the design of your site. If in doubt, adopt the same resolution as a big player like Twitter, and allow users to upload a larger image which will give you the flexibility to show a larger version if someone clicks through to their profile.
I found this page to be most useful.
https://en.gravatar.com/site/implement/images/
I plan to allow users to upload their own larger image and using similar rules as above, any dimension within range requested will auto generate the size for that image. So no matter if I want 50px or 51px, my site will generate the first request.
Obviously that requires software custom or other and is out of scope of your tags.

Resources