Picture Too Big - Will be Uploaded Unchanged Picture Too Big - Will be Uploaded Unchanged
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Picture Too Big - Will be Uploaded Unchanged

Started by pftq, June 30, 2010, 10:10:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pftq

Hi there, first of all, just wanted to say thanks and a great job on the plugin.  Something like this should really be integrated into the standard package.

My problem is that any files greater than 1Mb seem to be getting an error:
Picture '...' is too big.  It will be uploaded unchanged (no rotation, resizing...)

The file has no preview image and doesn't seem to respond to being rotated either.  Of course, it is also bigger than the file dimensions I set on CPG, so it refuses to add to the gallery once uploaded.

If I upload a file under 1MB though, it has preview images and gets resized just fine.  It sounds like from the readme that pictures taken from the camera should be able to be uploaded directly through the applet and I doubt any camera these days has files under 1MB in size, so I'm wondering if I'm missing a setting somewhere.  ???


On a side note, the files that do get resized have the wrong dimensions in the file info.  It uses the intermediate dimensions (example: 640x480) instead of the uploaded, resized file.  You might want to check on that. :)

pftq

Here is the debug btw (can't seem to modify first post):
FileUploadThreadHTTP at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:327)

phill104

#2
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616

Quote from: Joachim Müller on June 05, 2010, 11:10:42 AM
Board rules / Forum policies: Post Links.
This is so frustrating: I hate it that I even have to remind frequent-posters of board rules...

You really need to take the hint. Going back through your posts you seem not to bothere about doing as asked. Rarely do you resolve your threads and you very rarely post your link as requested. Please make an effort if you want us to.

In this case, do standard uploads work with files bigger than 1mb? Have you read the manual regarding this?
It is a mistake to think you can solve any major problems just with potatoes.

phill104

Is this the gallery you are on about? - http://www.pftq.com/gallery/

You are still running 1.4.19 on that even after you have been pointed a number to the latest release. It is for your benefit. As it is your site could be hacked very easilly. That is your choice. I won't loose sleep over it. Nor will I waste time trying to solve your problems while you are running outdated scripts.
It is a mistake to think you can solve any major problems just with potatoes.

pftq

My apologies on that.  It was a slip on my part to forget the link.  It seemed to me an issue independent of the gallery, so it did not cross my mind to do so.

http://www.pftq.com/innod/gallery/index.php (the site directory as a whole is still a work in progress though)

The standard upload works fine over 1Mb - in fact, the applet does upload the file if I let it go through after the error.  It just doesn't resize before uploading as it states.  I'm wondering if I'm missing a setting somewhere that the applet uses to determine whether a file is "too big" to attempt resizing.


In regards to my personal gallery not being up to date, I agree with you and am not all trying to avoid the issue.  I just have modifications that I will have to carry over in the process, so I am trying to set aside time later when I can do so.  It is not my intention at all to frustrate you by not upgrading yet, and my apoligies if I have done so previously.

Joachim Müller

To resolve upload issues with JUpload you first have to make sure that regular uploads work as expected, so you should do as the docs suggest in the sections "upload troubleshooting" and "asking for support on upload issues". Do so after upgrading http://www.pftq.com/gallery/.

etienne_sf

Hi,

  I see I'm coming late here.

So I get back to the original message : 10M pictures.


  The memory management is almost impossible in an applet. On one side, it's a good point, as it prevents attack by filling all your available memory. On the other side, giving a little more memory to the applet would make possible to manage bigger pictures...

  Understand: I can't do anything there! 


At least, you can send the picture to the server. Then, I would have think that CPG would resize the picture to the desired size. At least, it's what happens to me...

Etienne

pftq

Quote from: etienne_sf on July 03, 2010, 08:56:55 AM
Hi,

  I see I'm coming late here.

So I get back to the original message : 10M pictures.


  The memory management is almost impossible in an applet. On one side, it's a good point, as it prevents attack by filling all your available memory. On the other side, giving a little more memory to the applet would make possible to manage bigger pictures...

  Understand: I can't do anything there! 


At least, you can send the picture to the server. Then, I would have think that CPG would resize the picture to the desired size. At least, it's what happens to me...

Etienne

Ah I see.  Thanks for confirming this.  I just wasn't sure if it was a setting or just general limitation of the applet.  Yes, CPG still resizes it - it would just be a lot more efficient if it was resized before being uploaded, as you mentioned in your readme. :)

phill104

It is a mistake to think you can solve any major problems just with potatoes.

pftq

Quote from: etienne_sf on July 03, 2010, 08:56:55 AM
On the other side, giving a little more memory to the applet would make possible to manage bigger pictures...

Actually, just a thought but is it possible at all to give more memory to the applet (either via the applet itself or by having users change their Java settings)? Or does Java just not allow that?

I did read your point that you "can't do anything here", but I am not sure whether you meant that being the way the applet is set up currently or not.

pftq

Just to clarify why I was bringing up that point.  I was reading over some pages about the "java_arguments" parameter for Java 6 onwards.  Supposedly you can increase the memory given to the applet by putting -Xmx500m (for 500MB as an example).  It didn't seem to have changed anything for JUpload though (same alert), so I was wondering if there is code in the applet that checks the filesize and generates the error, regardless of the memory limit.

phill104

Are you struggling to upgrade your gallery at - http://www.pftq.com/gallery/

Or do you want to be hacked? Have you just got loads of mods in that gallery to contemplate doing the upgrade?
It is a mistake to think you can solve any major problems just with potatoes.