Large Image Upload in EditLive

7 messages Options
Embed this post
Permalink
Phil Lightfoot

Large Image Upload in EditLive

Reply Threaded More More options
Print post
Permalink
Hello,

     I have a question.  We're using ELJ at the National Institutes of Health to facilitate the authoring of research protocols from the web.  Recently, there was an announcement that all images are being scaled down if they are too large.  Since these are clinical protocols going to IRB for review, etc.  we need the images to be full resolution (X-Rays, CAT scan, etc.).  Is there a way to override this?

     Secondly, we've noticed a slight problem with the image upload functionality.  If we load in a PNG, JPG, etc. that is smaller than the resize limit, that image uploads properly to the server, gets it's new unique name, and everything is great.  If, however, we place a large image into the editor and then try to save it, it is not uploaded correctly, and the image comes back as the dreaded "red x".  Here is what we currently have, and which functions correctly on smaller images that aren't rescaled...

1.) User pastes/loads an image.
2.) On save, our upload script takes the image and renames it with a UUID as the name, and posts back the correct URL.  We also add a row in our database for that image attached to the user and protocol, so that when the user reloads EditLive, an image library of previously used images is built out.

The above is working for smaller images.  When we put in a large one though, part 2 doesn't happen at all.  Are there any suggestions on what to do here?

Thanks,

Phil Lightfoot
Adrian Sutton

Re: Large Image Upload in EditLive

Reply Threaded More More options
Print post
Permalink
The message below got accidentally missed in the moderation queue so never made it out to the mailing list.

Sorry about that Phil.

Regards,

Adrian Sutton.

Phil Lightfoot wrote:
Hello,

     I have a question.  We're using ELJ at the National Institutes of Health to facilitate the authoring of research protocols from the web.  Recently, there was an announcement that all images are being scaled down if they are too large.  Since these are clinical protocols going to IRB for review, etc.  we need the images to be full resolution (X-Rays, CAT scan, etc.).  Is there a way to override this?

     Secondly, we've noticed a slight problem with the image upload functionality.  If we load in a PNG, JPG, etc. that is smaller than the resize limit, that image uploads properly to the server, gets it's new unique name, and everything is great.  If, however, we place a large image into the editor and then try to save it, it is not uploaded correctly, and the image comes back as the dreaded "red x".  Here is what we currently have, and which functions correctly on smaller images that aren't rescaled...

1.) User pastes/loads an image.
2.) On save, our upload script takes the image and renames it with a UUID as the name, and posts back the correct URL.  We also add a row in our database for that image attached to the user and protocol, so that when the user reloads EditLive, an image library of previously used images is built out.

The above is working for smaller images.  When we put in a large one though, part 2 doesn't happen at all.  Are there any suggestions on what to do here?

Thanks,

Phil Lightfoot
John VanAntwerp

Re: Large Image Upload in EditLive

Reply Threaded More More options
Print post
Permalink
We have seen similar behavior in a couple of instances...

First, the servlet/program has an upload file size limit built in that
the file size exceeds.  A version of a servlet we used as a base a few
years ago would take large images and resize them to fit the maximum
size, which sounds similar to your resize issue (we ended up writing a
custom upload handler).  Are you using an off the shelf upload receiver,
or something custom written?

The second is sometimes the image is large enough to cause ELJ to run
out of memory on the heap.  In this case it seems to ignore the image.
We haven't ever seen it accept the paste of the image but not upload it
though.

Hope this helps a little!
- John

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Adrian
Sutton
Sent: Wednesday, December 31, 2008 4:07 AM
To: [hidden email]
Subject: Re: [Liveworks] Large Image Upload in EditLive


The message below got accidentally missed in the moderation queue so
never made it out to the mailing list.

Sorry about that Phil.

Regards,

Adrian Sutton.


Phil Lightfoot wrote:
>
> Hello,
>
>      I have a question.  We're using ELJ at the National Institutes of

> Health to facilitate the authoring of research protocols from the web.
> Recently, there was an announcement that all images are being scaled
> down if they are too large.  Since these are clinical protocols going
> to IRB for review, etc.  we need the images to be full resolution
> (X-Rays, CAT scan, etc.).  Is there a way to override this?
>
>      Secondly, we've noticed a slight problem with the image upload
> functionality.  If we load in a PNG, JPG, etc. that is smaller than
> the resize limit, that image uploads properly to the server, gets it's

> new unique name, and everything is great.  If, however, we place a
> large image into the editor and then try to save it, it is not
> uploaded correctly, and the image comes back as the dreaded "red x".  
> Here is what we currently have, and which functions correctly on
> smaller images that aren't rescaled...
>
> 1.) User pastes/loads an image.
> 2.) On save, our upload script takes the image and renames it with a
> UUID as the name, and posts back the correct URL.  We also add a row
> in our database for that image attached to the user and protocol, so
> that when the user reloads EditLive, an image library of previously
> used images is built out.
>
> The above is working for smaller images.  When we put in a large one
> though, part 2 doesn't happen at all.  Are there any suggestions on
> what to do here?
>
> Thanks,
>
> Phil Lightfoot
>

--
View this message in context:
http://www.nabble.com/Large-Image-Upload-in-EditLive-tp21130558p21229364
.html
Sent from the LiveWorks! mailing list archive at Nabble.com.

_______________________________________________
[hidden email]
List instructions at http://liveworks.ephox.com/mailing-list/
_______________________________________________
[hidden email]
List instructions at http://liveworks.ephox.com/mailing-list/
Damien Fitzpatrick

Re: Large Image Upload in EditLive

Reply Threaded More More options
Print post
Permalink
Hi Phil,

The functionality you¹re talking about relates to the new image editing
features of EditLive! 6.5.  What will happen is that local images that are
inserted from the file system via one of EditLive!¹s dialogs will be
automatically resized to 800x600 (or their closest proportional size).

At this point in time there is no option to configure the image resizing
settings independent of the rest of the image editing functionality.
However, there is an option to disable inline image editing functionality
using the ³enableEditing² flag on the ³<image>² element in your
configuration file.

It¹s worth noting that the automatic resizing only happens for local images
inserted via a dialog.  Therefore if you¹ve already got your images on the
server and are getting those URLs from the server via WebDAV browsing or
your own dialog etc then you don¹t have to worry about the automatic
resizing.

Damien

<SNIP>
>> >      I have a question.  We're using ELJ at the National Institutes of
>
>> > Health to facilitate the authoring of research protocols from the web.
>> > Recently, there was an announcement that all images are being scaled
>> > down if they are too large.  Since these are clinical protocols going
>> > to IRB for review, etc.  we need the images to be full resolution
>> > (X-Rays, CAT scan, etc.).  Is there a way to override this?
>> >
<SNIP>
_______________________________________________
[hidden email]
List instructions at http://liveworks.ephox.com/mailing-list/
FaresN

Re: Large Image Upload in EditLive

Reply Threaded More More options
Print post
Permalink
Hello,

One of our clients is having this issue.  They are attempting to upload an image 700x770 that is being resized.

I attempted to add the <images enableEditing=false> without success.  (we are using 6.7.0.136)

They are currently uploading the image separately as a work around, but is time consuming and forces them to use extra steps.

Maybe you can add a flag that sets the maximum height and width that is allowed to be uploaded before the automatic resizing kicks in.  This would allow us to better handle different client implementations.  The 800x600 limit seems harsh.

Thanks,
Fares


Just, Dylan

Re: Large Image Upload in EditLive

Reply Threaded More More options
Print post
Permalink
> Maybe you can add a flag that sets the maximum height and width that
is
> allowed to be uploaded before the automatic resizing kicks in.  This
would
> allow us to better handle different client implementations.  The
800x600
> limit seems harsh.

This feature will be included in EditLive! 7.0. You can try it out in
the Early Access version of 7.0, available at:
http://liveworks.ephox.com/early-access/editlive-development

The setting are in the xml config file - you'll need a tag like this,
under the <mediaSettings> tag:
<images preferredWidth="x" preferredHeight="y" />

Please refer to the documentation in the EditLive! SDK zip file for
details.

Kind regards,

Dylan Just
Software Engineer
www.ephox.com
_______________________________________________
[hidden email]
List instructions at http://liveworks.ephox.com/mailing-list/
Andrew Herron-5

Re: Large Image Upload in EditLive

Reply Threaded More More options
Print post
Permalink
> This feature will be included in EditLive! 7.0. You can try it out in
> the Early Access version of 7.0, available at:
> http://liveworks.ephox.com/early-access/editlive-development

In the meantime, while the enableEditing attribute should work (this
might be a bug) if you wish to disable the image editor completely
simply remove the <plugin name="imageEditor" /> element from your
configuration file.

Regards,
Andy

---
Andrew Herron, Senior Software Engineer
Global: +1 (650) 292 9659 x705  Australia: +61 (7) 3162 4601
Ephox <http://www.ephox.com> | Ephox Blogs <http://people.ephox.com>
_______________________________________________
[hidden email]
List instructions at http://liveworks.ephox.com/mailing-list/