Levertine

Please login or register.

Pages: [1] 2 3

Author Topic: File size of 16 x 14 is too big?  (Read 7368 times)

Steve

  • Full Member
  • ***
  • Posts: 101
  • Alcohol is the liquid version of Photoshop.

File size of 16 x 14 is too big?
« on: January 17, 2015, 02:30:13 PM »
I got this error when trying to upload a 16 x 14 gif:



Something went wrong while uploading this item:
The image you tried to upload is too big. (new.gif)

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: File size of 16 x 14 is too big?
« Reply #1 on: January 17, 2015, 02:51:16 PM »
As an admin or user? And what size quota did you have set for that user (assuming not an admin)? I tweaked that code in 1.1 like I mentioned elsewhere, thought I'd fixed it since it seemed to kick back images as it should for me. (I am assuming you're talking 1.1?)

Steve

  • Full Member
  • ***
  • Posts: 101
  • Alcohol is the liquid version of Photoshop.

Re: File size of 16 x 14 is too big?
« Reply #2 on: January 17, 2015, 04:00:25 PM »
Um, I got that error here.

lurk

  • Full Member
  • ***
  • Posts: 113

Re: File size of 16 x 14 is too big?
« Reply #3 on: January 17, 2015, 04:20:28 PM »
Confirmed.  I just tried a 16 x 16 gif image, and got,

"Something went wrong while uploading this item: The image you tried to upload is too big. (animated_fav.gif)"

Image attached.

Edit: Must be a setting or something on here, because I'm also running  version 1.1.0 and can upload it no problem on my own site.  ;)
« Last Edit: January 17, 2015, 04:27:08 PM by lurk »
Guitarist Guild Running SMF 2.0.9 / Tinyportal 1.1 and Levertine Gallery

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: File size of 16 x 14 is too big?
« Reply #4 on: January 17, 2015, 05:21:44 PM »
Here was running rev 958, the changes to image upload were handled in revisions 959 to 962 (r963 fixed the version number as 1.1.0). I've just updated to r963 here, so it should behave now.

Please let me know if it still occurs here.

lurk

  • Full Member
  • ***
  • Posts: 113

Re: File size of 16 x 14 is too big?
« Reply #5 on: January 17, 2015, 05:30:47 PM »

Please let me know if it still occurs here.

Still getting the error here Pete.
Guitarist Guild Running SMF 2.0.9 / Tinyportal 1.1 and Levertine Gallery

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: File size of 16 x 14 is too big?
« Reply #6 on: January 17, 2015, 05:35:47 PM »
Huh. I wonder what's causing that then.

Time to go diving in the code since it all works as expected for both admin and normal users on a test site. I wonder if it's related to being an animated GIF since I didn't test that.

lurk

  • Full Member
  • ***
  • Posts: 113

Re: File size of 16 x 14 is too big?
« Reply #7 on: January 17, 2015, 06:04:50 PM »

I wonder if it's related to being an animated GIF since I didn't test that.


Could be I guess, I just grabbed one sitting in my test files without thinking about the animation.  Like I said it uploads on my Guitarist Guild without problem. 

I'm not sure if Steve's image he tried was animated though.
Guitarist Guild Running SMF 2.0.9 / Tinyportal 1.1 and Levertine Gallery

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: File size of 16 x 14 is too big?
« Reply #8 on: January 17, 2015, 06:12:08 PM »
I worked out what it was. The file size is checked on the client side by way of the mOxie component in Plupload but it just sits and cries in the corner if you feed it an animated GIF. It's like feeding a Mogwai after midnight.

So in the 1.1 release I've changed that up to not check it on the client (since I can't reliably do it on the client) and switched it to only be done on the server instead.

Steve

  • Full Member
  • ***
  • Posts: 101
  • Alcohol is the liquid version of Photoshop.

Re: File size of 16 x 14 is too big?
« Reply #9 on: January 17, 2015, 06:22:45 PM »
I wasn't trying to upload an animated gif though. Let me go try it again anyway.


Edit: Still getting the error. This is the image I was trying to upload:


« Last Edit: January 17, 2015, 06:25:03 PM by Steve »

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: File size of 16 x 14 is too big?
« Reply #10 on: January 17, 2015, 06:23:34 PM »
Yeah because I changed the code to the newer one since your previous test ;)

Steve

  • Full Member
  • ***
  • Posts: 101
  • Alcohol is the liquid version of Photoshop.

Re: File size of 16 x 14 is too big?
« Reply #11 on: January 18, 2015, 02:02:09 AM »
But Pete ... I'm still getting the error. I just tried it again with a different non-animated gif and as soon as I click the image after clicking 'Browse' I get:

 Something went wrong while uploading this item:
The image you tried to upload is too big. (newold2.gif)

Same thing if I try to drag and drop. And that image is 24 x 9 at 132 bytes.

Edit: jpg works fine.
« Last Edit: January 18, 2015, 02:05:35 AM by Steve »

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: File size of 16 x 14 is too big?
« Reply #12 on: January 18, 2015, 08:35:29 AM »
Really? I wasn't getting it failing on normal GIF files, only animated ones - but in the version I have locally (not yet uploaded here), GIF is now excluded altogether on the client side check specifically for this sort of reason. I'll upload that here and see how that works out for you - you might have to clear your cache locally though since it's in the upload.js file.

lurk

  • Full Member
  • ***
  • Posts: 113

Re: File size of 16 x 14 is too big?
« Reply #13 on: January 18, 2015, 10:23:18 AM »
My animated one seems to have loaded ok now. ;)
Guitarist Guild Running SMF 2.0.9 / Tinyportal 1.1 and Levertine Gallery

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: File size of 16 x 14 is too big?
« Reply #14 on: January 18, 2015, 10:31:17 AM »
Yeah, I was using that as one of my exemplars for testing.
Pages: [1] 2 3
 

SMF 2.0.9 | SMF © 2014, Simple Machines
BlueLight design by Bloc