Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image uploadinng is not working it show error( Encoding format (tmp) is not supported). #1

Open
mohammed1233 opened this issue Sep 19, 2019 · 7 comments

Comments

@mohammed1233
Copy link

I installed the project. the database is working i can login and out but when it came to uploading images it doesn't work an error show up ( Encoding format (tmp) is not supported).
her are same images of the error.

1

2

thanks :)

@mohammed1233 mohammed1233 changed the title image uploadinng is not working in show error( Encoding format (tmp) is not supported). image uploadinng is not working it show error( Encoding format (tmp) is not supported). Sep 19, 2019
@parvez-git
Copy link
Owner

parvez-git commented Sep 20, 2019 via email

@mohammed1233
Copy link
Author

mohammed1233 commented Sep 21, 2019

I have used installation process properly given on Github.

git clone https://github.com/parvez-git/real-estate.git
cd real-estate
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seed
php artisan storage:link
php artisan serve

I checked php artisan storage:link

2

thanks

@narclax
Copy link

narclax commented Oct 14, 2019

Just replace the "save" method for the image input on every controller that has image processing.

Instead of:

$userimage= Image::make($image)->save();

Use:

$userimage= Image::make($image)->stream();

The issue comes with some changes done in later versions of the intervention image package.

Best regards,
Jose Marty

@qant
Copy link

qant commented Jun 3, 2020

I found the same stuff in SliderController.php

Again wrong behavior of ->save()... $slider = Image::make($image)->resize(1600, 480)->save();
can be changed to: $slider = Image::make($image)->resize(1600, 480)->stream();

Also to persist image ration better use widen instead of resize:
$slider = Image::make($image)->widen(1600)->stream();

I hope it will helps to someone.

@pritambuzz
Copy link

pritambuzz commented Jan 26, 2021

Use below installation and steps to resolve image issue.

PHP5: sudo apt-get install php5-gd
PHP7.0: sudo apt-get install php7.0-gd
PHP7.1: sudo apt-get install php7.1-gd
PHP7.2: sudo apt-get install php7.2-gd
PHP7.3: sudo apt-get install php7.3-gd
PHP7.4: sudo apt-get install php7.4-gd
PHP8.0: sudo apt-get install php8.0-gd

That's all, you can verify that GD support loaded:

php -i | grep -i gd

Output should be like this:

GD Support => enabled
GD headers Version => 2.1.1-dev
gd.jpeg_ignore_warning => 0 => 0

@jehdilas
Copy link

keep getting this error message each time i try to upload an image, pretty sure it has nothing to do with the DB because other infor such as creating of account works, please can anyone help...
Screenshot from 2023-01-27 15-36-05

@pxmmpd
Copy link

pxmmpd commented Jan 1, 2024

Because image is not in proper size not in ranges so you get this error.
please upload image in limited range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants