Skip to content

statamic:assets:generate-presets fails #5634

Answered by eliasu
eliasu asked this question in Troubleshooting
Discussion options

You must be logged in to vote

Thank you all for your help. I figured it out. Solution below for people with the same issues.

It may be that you have a .jpg named file but it's really tiff.
I was hoping to find the error elsewhere but no: That was the reason. They "converted" a .tiff to a .jpg image via renaming 😔

Since I had a lot of images, and couldn't just delete everything, or go through every file.

So I use the command line with a relatively simple command to check the "real file type" behind the naming suffix. Then you get a long list, which you can copy to a text editor and search for all unwanted types. This way I got the corrupted files. Maybe it helps someone as well.

for file in /path/to/your/folder/*
do
…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@eliasu
Comment options

@afonic
Comment options

@jasonvarga
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by eliasu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants