News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Automatic Attachment Rotation (and Resize)

Started by dougiefresh, March 04, 2016, 07:34:59 PM

Previous topic - Next topic

GL700Wing

That iMagick error (ie, invalid colormap index) could be caused by a corrupt image (possibly a GIF).

BTW: The image file name is ./attachments/372_275496b80036df18775e7cc514eb1787a8b8edcd.dat
Life doesn't have to be perfect to be wonderful ...

sbartelski

And it sems to be running now, did about 700 and then:

Fatal error: Uncaught ImagickException: Bogus DQT index 10 `/home/dh_p6nj8d/clc-smf-test.dreamhosters.com/attachments/2738_3fa02b5d7980b984af97be4fb340d82e313e586c.dat' @ error/jpeg.c/JPEGErrorHandler/335 in /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/Subs-AutoRotation.php:2062 Stack trace:
#0 /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/Subs-AutoRotation.php(2062): Imagick->__construct('/home/dh_p6nj8d...')
#1 /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/Subs-AutoRotation.php(1103): AutoRotation_Process('/home/dh_p6nj8d...', 1, '65', 'jpeg')
#2 /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/Subs-ResizeExistingImages.php(163): AutoRotation_ResizeExisting(Array)
#3 /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/Subs.php(6030): ResizeBatch()
#4 /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/ManageAttachments.php(92): call_helper('ResizeBatch')
#5 /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/Admin.php(499): ManageAttachments()
#6 /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/index.php(186): AdminMain()
#7 {main} thrown in /home/dh_p6nj8d/clc-smf-test.dreamhosters.com/Sources/Subs-AutoRotation.php on line 2062

I did do the Attachment Integrity Test, clicked all boxes.
Stefan Bartelski
Webmaster for the Cadillac LaSalle Discussion forums

sbartelski

Quote from: GL700Wing on March 12, 2024, 02:58:40 PMThat iMagick error (ie, invalid colormap index) could be caused by a corrupt image (possibly a GIF).

BTW: The image file name is ./attachments/372_275496b80036df18775e7cc514eb1787a8b8edcd.dat
Can I exclude .dat files from processing?
Stefan Bartelski
Webmaster for the Cadillac LaSalle Discussion forums

GL700Wing

Quote from: sbartelski on March 12, 2024, 03:01:09 PM
Quote from: GL700Wing on March 12, 2024, 02:58:40 PMThat iMagick error (ie, invalid colormap index) could be caused by a corrupt image (possibly a GIF).

BTW: The image file name is ./attachments/372_275496b80036df18775e7cc514eb1787a8b8edcd.dat
Can I exclude .dat files from processing?

You can't - that's the extension given to all attachments.

However, and instead of using the batch resizing option you could use Administration Center => Attachments and Avatars => Browse FilesBrowse Files => Resize, Rotate and/or Reformat Existing Images to process groups of selected files.
You cannot view this attachment.

You cannot view this attachment.
Life doesn't have to be perfect to be wonderful ...

sbartelski

I will try to delete the offending file and then rerun the integrity check. Hope that I can find the file, at 80K files, even the file manager has a problem. Going to try FileZilla.

Thanks for your help.
Stefan
Stefan Bartelski
Webmaster for the Cadillac LaSalle Discussion forums

sbartelski

I did try that alreday, but one by one. How do I do a group?

Quote from: GL700Wing on March 12, 2024, 03:12:52 PM
Quote from: sbartelski on March 12, 2024, 03:01:09 PM
Quote from: GL700Wing on March 12, 2024, 02:58:40 PMThat iMagick error (ie, invalid colormap index) could be caused by a corrupt image (possibly a GIF).

BTW: The image file name is ./attachments/372_275496b80036df18775e7cc514eb1787a8b8edcd.dat
Can I exclude .dat files from processing?

You can't - that's the extension given to all attachments.

However, and instead of using the batch resizing option you could use Administration Center => Attachments and Avatars => Browse FilesBrowse Files => Resize, Rotate and/or Reformat Existing Images to process groups of selected files.
You cannot view this attachment.

You cannot view this attachment.

Stefan Bartelski
Webmaster for the Cadillac LaSalle Discussion forums

GL700Wing

Quote from: sbartelski on March 12, 2024, 03:15:13 PMI did try that alreday, but one by one. How do I do a group?
There should be checkboxes next to the image file names to enable you to select multiple images for processing.
You cannot view this attachment.
Life doesn't have to be perfect to be wonderful ...

Advertisement: