Re: [DISCUSSION] download whiteboard as png

2019-02-27 Thread Maxim Solodovnik
On Wed, 27 Feb 2019 at 21:11, Peter Dähn  wrote:

> Hi Maxim,
>
> works well. Also for long wb-pages.
>
> Text will be editable over language tool?
>

sure, as always :)))


>
> Greetings Peter
>
> Am 27.02.19 um 14:09 schrieb Maxim Solodovnik:
>
> Thanks Daniel,
> Will update the text :)
>
> On Wed, 27 Feb 2019 at 19:54, Daniel Ascher 
> wrote:
>
>> Works well! Thanks. I think this is a good solution. However in English,
>> it should read:
>>
>> Please right click the image and choose "Save image as"
>>
>> Thanks! Dan
>>
>> On Tue, Feb 26, 2019 at 10:16 AM Maxim Solodovnik 
>> wrote:
>>
>>> https://om.alteametasoft.com:8443/next
>>> is updated
>>> You can check my proposal :)
>>>
>>>
>>> On Tue, 26 Feb 2019 at 21:27, Daniel Ascher <
>>> aplusad...@aplustutoring.com> wrote:
>>>
 Please let us know when the demo-next version is available so we try it
 out as you suggested. Thanks Maxim!

 Dan

 On Tue, Feb 26, 2019 at 7:44 AM Maxim Solodovnik 
 wrote:

> @All,
>
> we need to agree on proper solution for this issue :)
>
> On Mon, 25 Feb 2019 at 21:05, Maxim Solodovnik 
> wrote:
>
>> Hello All,
>>
>> Here are some details
>>
>> by default Tomcat has limitation of 2Mb for post data [1] (
>> maxPostSize)
>> You can change this in OM 4.0.x by changing conf/jee-container.xml
>> You need to add
>>  
>>   
>>> value="4000"/>
>>   
>>  
>> to ''
>>
>> This should fix Huge PDF download
>>
>>
>> According to PNG download: it can be done "by click" BUT
>> It will only 100% work if it will be dobe "via server" i.e.
>> 1) image will be prepared in client's browser
>> 2) uploaded to server
>> 3) then immediately downloaded
>> This "server round trip" might be very expensive
>>
>> You can see how proposed pop-up dialog will look like [2]
>> I can update demo-next with working prototype so you can try it :)
>>
>>
>> [1] https://tomcat.apache.org/tomcat-9.0-doc/config/http.html
>> [2] https://www.dropbox.com/s/r3pbftfvbp1fdj7/DownloadAsPng.png?dl=0
>>
>>
>> On Fri, 22 Feb 2019 at 01:46, Daniel Ascher <
>> aplusad...@aplustutoring.com> wrote:
>>
>>> Okay. Thanks for letting me know. Dan
>>>
>>> On Thu, Feb 21, 2019 at 11:12 AM Maxim Solodovnik <
>>> solomax...@gmail.com> wrote:
>>>
 The quality will not suffer
 The image might be huge, but will be displayed as preview to
 consume reasonable area on the screen

 The reason to display this dialog is: somehow "just save" is
 silently fail in browser .

 On Thu, Feb 21, 2019, 22:58 Daniel Ascher <
 aplusad...@aplustutoring.com> wrote:

> I think this means that the PNG will be a relatively lower quality
> image than the PDF version. Is that correct?
>
> Also, is it possible to have a "Save" or "Download" button on the
> preview box, rather than telling the user to right-click?
>
> Thanks. Dan
>
> On Thu, Feb 21, 2019 at 9:07 AM Maxim Solodovnik <
> solomax...@gmail.com> wrote:
>
>> Thanks :))
>>
>> Prepared image will have constant size something like 320x240,
>> sort of preview :)
>>
>> On Thu, Feb 21, 2019, 20:00 Peter Dähn  wrote:
>>
>>> ok.. now I got it... sorry for that...
>>>
>>> The prepared scaled image has the dimension of the current
>>> client view or the wb area?
>>>
>>> PS: much fun on your trip...
>>>
>>> Am 21.02.19 um 13:12 schrieb Maxim Solodovnik:
>>>
>>> Hello All,
>>>
>>> Am currently ooo (doing mountain skiing :)
>>> Will try to answer in one email
>>>
>>> 1 save as pdf works, but for huge pdfs it requires jee*.xml
>>> tuning
>>>
>>> 2 right-click "save as" will not work on white-board.
>>> As i wrote in initial email:
>>>
>>> when "Download as PNG" is clicked
>>> 1) image is being prepared on the client
>>> 2) small dialog with scaled image and text 'Please right click the
>>> image and choose "Save as"' is displayed to the user
>>>
>>>
>>> This is not yet implemented :)
>>>
>>> On Thu, Feb 21, 2019, 18:48 Peter Dähn  wrote:
>>>
 "Save as" of smaller pics on wb also ends up with those empty
 pics. But right after draw on it, wb with pic will be saved 
 (doesn't help
 with large pics).

 The download in the Files-tab works so far.



 But both 

Re: [DISCUSSION] download whiteboard as png

2019-02-27 Thread Peter Dähn
Hi Maxim,

works well. Also for long wb-pages.

Text will be editable over language tool?

Greetings Peter

Am 27.02.19 um 14:09 schrieb Maxim Solodovnik:
> Thanks Daniel,
> Will update the text :)
>
> On Wed, 27 Feb 2019 at 19:54, Daniel Ascher
> mailto:aplusad...@aplustutoring.com>>
> wrote:
>
> Works well! Thanks. I think this is a good solution. However in
> English, it should read:
>
> Please right click the image and choose "Save imageas"  
>
> Thanks! Dan
>
> On Tue, Feb 26, 2019 at 10:16 AM Maxim Solodovnik
> mailto:solomax...@gmail.com>> wrote:
>
> https://om.alteametasoft.com:8443/next 
> is updated
> You can check my proposal :)
>
>
> On Tue, 26 Feb 2019 at 21:27, Daniel Ascher
>  > wrote:
>
> Please let us know when the demo-next version is available
> so we try it out as you suggested. Thanks Maxim!
>
> Dan
>
> On Tue, Feb 26, 2019 at 7:44 AM Maxim Solodovnik
> mailto:solomax...@gmail.com>> wrote:
>
> @All,
>
> we need to agree on proper solution for this issue :)
>
> On Mon, 25 Feb 2019 at 21:05, Maxim Solodovnik
> mailto:solomax...@gmail.com>>
> wrote:
>
> Hello All,
>
> Here are some details
>
> by default Tomcat has limitation of 2Mb for post
> data [1] (maxPostSize)
> You can change this in OM 4.0.x by
> changing conf/jee-container.xml
> You need to add
>              
>                           
>                                         key="maxPostSize" value="4000"/>
>                           
>              
> to ''
>
> This should fix Huge PDF download
>
>
> According to PNG download: it can be done "by
> click" BUT
> It will only 100% work if it will be dobe "via
> server" i.e. 
> 1) image will be prepared in client's browser
> 2) uploaded to server
> 3) then immediately downloaded
> This "server round trip" might be very expensive
>
> You can see how proposed pop-up dialog will look
> like [2]
> I can update demo-next with working prototype so
> you can try it :)
>
>
> [1] 
> https://tomcat.apache.org/tomcat-9.0-doc/config/http.html
> [2] 
> https://www.dropbox.com/s/r3pbftfvbp1fdj7/DownloadAsPng.png?dl=0
>
>
> On Fri, 22 Feb 2019 at 01:46, Daniel Ascher
>  > wrote:
>
> Okay. Thanks for letting me know. Dan
>
> On Thu, Feb 21, 2019 at 11:12 AM Maxim
> Solodovnik  > wrote:
>
> The quality will not suffer
> The image might be huge, but will be
> displayed as preview to consume reasonable
> area on the screen 
>
> The reason to display this dialog is:
> somehow "just save" is silently fail in
> browser .
>
> On Thu, Feb 21, 2019, 22:58 Daniel Ascher
>  > wrote:
>
> I think this means that the PNG will
> be a relatively lower quality image
> than the PDF version. Is that correct?
>
> Also, is it possible to have a "Save"
> or "Download" button on the preview
> box, rather than telling the user to
> right-click?
>
> Thanks. Dan
>
> On Thu, Feb 21, 2019 at 9:07 AM Maxim
> Solodovnik  > wrote:
>
> Thanks :))
>
> Prepared image will have constant
> size something like 320x240, sort
> of preview :)
>
> On Thu, Feb 21, 2019, 20:00 Peter
> Dähn   

Re: [DISCUSSION] download whiteboard as png

2019-02-27 Thread Maxim Solodovnik
Thanks Daniel,
Will update the text :)

On Wed, 27 Feb 2019 at 19:54, Daniel Ascher 
wrote:

> Works well! Thanks. I think this is a good solution. However in English,
> it should read:
>
> Please right click the image and choose "Save image as"
>
> Thanks! Dan
>
> On Tue, Feb 26, 2019 at 10:16 AM Maxim Solodovnik 
> wrote:
>
>> https://om.alteametasoft.com:8443/next
>> is updated
>> You can check my proposal :)
>>
>>
>> On Tue, 26 Feb 2019 at 21:27, Daniel Ascher 
>> wrote:
>>
>>> Please let us know when the demo-next version is available so we try it
>>> out as you suggested. Thanks Maxim!
>>>
>>> Dan
>>>
>>> On Tue, Feb 26, 2019 at 7:44 AM Maxim Solodovnik 
>>> wrote:
>>>
 @All,

 we need to agree on proper solution for this issue :)

 On Mon, 25 Feb 2019 at 21:05, Maxim Solodovnik 
 wrote:

> Hello All,
>
> Here are some details
>
> by default Tomcat has limitation of 2Mb for post data [1] (maxPostSize
> )
> You can change this in OM 4.0.x by changing conf/jee-container.xml
> You need to add
>  
>   
> value="4000"/>
>   
>  
> to ''
>
> This should fix Huge PDF download
>
>
> According to PNG download: it can be done "by click" BUT
> It will only 100% work if it will be dobe "via server" i.e.
> 1) image will be prepared in client's browser
> 2) uploaded to server
> 3) then immediately downloaded
> This "server round trip" might be very expensive
>
> You can see how proposed pop-up dialog will look like [2]
> I can update demo-next with working prototype so you can try it :)
>
>
> [1] https://tomcat.apache.org/tomcat-9.0-doc/config/http.html
> [2] https://www.dropbox.com/s/r3pbftfvbp1fdj7/DownloadAsPng.png?dl=0
>
>
> On Fri, 22 Feb 2019 at 01:46, Daniel Ascher <
> aplusad...@aplustutoring.com> wrote:
>
>> Okay. Thanks for letting me know. Dan
>>
>> On Thu, Feb 21, 2019 at 11:12 AM Maxim Solodovnik <
>> solomax...@gmail.com> wrote:
>>
>>> The quality will not suffer
>>> The image might be huge, but will be displayed as preview to consume
>>> reasonable area on the screen
>>>
>>> The reason to display this dialog is: somehow "just save" is
>>> silently fail in browser .
>>>
>>> On Thu, Feb 21, 2019, 22:58 Daniel Ascher <
>>> aplusad...@aplustutoring.com> wrote:
>>>
 I think this means that the PNG will be a relatively lower quality
 image than the PDF version. Is that correct?

 Also, is it possible to have a "Save" or "Download" button on the
 preview box, rather than telling the user to right-click?

 Thanks. Dan

 On Thu, Feb 21, 2019 at 9:07 AM Maxim Solodovnik <
 solomax...@gmail.com> wrote:

> Thanks :))
>
> Prepared image will have constant size something like 320x240,
> sort of preview :)
>
> On Thu, Feb 21, 2019, 20:00 Peter Dähn  wrote:
>
>> ok.. now I got it... sorry for that...
>>
>> The prepared scaled image has the dimension of the current client
>> view or the wb area?
>>
>> PS: much fun on your trip...
>>
>> Am 21.02.19 um 13:12 schrieb Maxim Solodovnik:
>>
>> Hello All,
>>
>> Am currently ooo (doing mountain skiing :)
>> Will try to answer in one email
>>
>> 1 save as pdf works, but for huge pdfs it requires jee*.xml tuning
>>
>> 2 right-click "save as" will not work on white-board.
>> As i wrote in initial email:
>>
>> when "Download as PNG" is clicked
>> 1) image is being prepared on the client
>> 2) small dialog with scaled image and text 'Please right click the
>> image and choose "Save as"' is displayed to the user
>>
>>
>> This is not yet implemented :)
>>
>> On Thu, Feb 21, 2019, 18:48 Peter Dähn  wrote:
>>
>>> "Save as" of smaller pics on wb also ends up with those empty
>>> pics. But right after draw on it, wb with pic will be saved 
>>> (doesn't help
>>> with large pics).
>>>
>>> The download in the Files-tab works so far.
>>>
>>>
>>>
>>> But both JPG and original saves a .jpg-file!?
>>>
>>> Greetings Peter
>>>
>>> Am 21.02.19 um 09:19 schrieb Peter Dähn:
>>>
>>> and save as ends up in an empty png... this doesn't work as
>>> fix...
>>>
>>>
>>>
>>> Am 21.02.19 um 08:35 schrieb Peter Dähn:
>>>
>>> Hi there,
>>>
>>> Download as pdf doesn't work either...

Re: [DISCUSSION] download whiteboard as png

2019-02-27 Thread Daniel Ascher
Works well! Thanks. I think this is a good solution. However in English, it
should read:

Please right click the image and choose "Save image as"

Thanks! Dan

On Tue, Feb 26, 2019 at 10:16 AM Maxim Solodovnik 
wrote:

> https://om.alteametasoft.com:8443/next
> is updated
> You can check my proposal :)
>
>
> On Tue, 26 Feb 2019 at 21:27, Daniel Ascher 
> wrote:
>
>> Please let us know when the demo-next version is available so we try it
>> out as you suggested. Thanks Maxim!
>>
>> Dan
>>
>> On Tue, Feb 26, 2019 at 7:44 AM Maxim Solodovnik 
>> wrote:
>>
>>> @All,
>>>
>>> we need to agree on proper solution for this issue :)
>>>
>>> On Mon, 25 Feb 2019 at 21:05, Maxim Solodovnik 
>>> wrote:
>>>
 Hello All,

 Here are some details

 by default Tomcat has limitation of 2Mb for post data [1] (maxPostSize)
 You can change this in OM 4.0.x by changing conf/jee-container.xml
 You need to add
  
   
>>> value="4000"/>
   
  
 to ''

 This should fix Huge PDF download


 According to PNG download: it can be done "by click" BUT
 It will only 100% work if it will be dobe "via server" i.e.
 1) image will be prepared in client's browser
 2) uploaded to server
 3) then immediately downloaded
 This "server round trip" might be very expensive

 You can see how proposed pop-up dialog will look like [2]
 I can update demo-next with working prototype so you can try it :)


 [1] https://tomcat.apache.org/tomcat-9.0-doc/config/http.html
 [2] https://www.dropbox.com/s/r3pbftfvbp1fdj7/DownloadAsPng.png?dl=0


 On Fri, 22 Feb 2019 at 01:46, Daniel Ascher <
 aplusad...@aplustutoring.com> wrote:

> Okay. Thanks for letting me know. Dan
>
> On Thu, Feb 21, 2019 at 11:12 AM Maxim Solodovnik <
> solomax...@gmail.com> wrote:
>
>> The quality will not suffer
>> The image might be huge, but will be displayed as preview to consume
>> reasonable area on the screen
>>
>> The reason to display this dialog is: somehow "just save" is silently
>> fail in browser .
>>
>> On Thu, Feb 21, 2019, 22:58 Daniel Ascher <
>> aplusad...@aplustutoring.com> wrote:
>>
>>> I think this means that the PNG will be a relatively lower quality
>>> image than the PDF version. Is that correct?
>>>
>>> Also, is it possible to have a "Save" or "Download" button on the
>>> preview box, rather than telling the user to right-click?
>>>
>>> Thanks. Dan
>>>
>>> On Thu, Feb 21, 2019 at 9:07 AM Maxim Solodovnik <
>>> solomax...@gmail.com> wrote:
>>>
 Thanks :))

 Prepared image will have constant size something like 320x240, sort
 of preview :)

 On Thu, Feb 21, 2019, 20:00 Peter Dähn  wrote:

> ok.. now I got it... sorry for that...
>
> The prepared scaled image has the dimension of the current client
> view or the wb area?
>
> PS: much fun on your trip...
>
> Am 21.02.19 um 13:12 schrieb Maxim Solodovnik:
>
> Hello All,
>
> Am currently ooo (doing mountain skiing :)
> Will try to answer in one email
>
> 1 save as pdf works, but for huge pdfs it requires jee*.xml tuning
>
> 2 right-click "save as" will not work on white-board.
> As i wrote in initial email:
>
> when "Download as PNG" is clicked
> 1) image is being prepared on the client
> 2) small dialog with scaled image and text 'Please right click the
> image and choose "Save as"' is displayed to the user
>
>
> This is not yet implemented :)
>
> On Thu, Feb 21, 2019, 18:48 Peter Dähn  wrote:
>
>> "Save as" of smaller pics on wb also ends up with those empty
>> pics. But right after draw on it, wb with pic will be saved (doesn't 
>> help
>> with large pics).
>>
>> The download in the Files-tab works so far.
>>
>>
>>
>> But both JPG and original saves a .jpg-file!?
>>
>> Greetings Peter
>>
>> Am 21.02.19 um 09:19 schrieb Peter Dähn:
>>
>> and save as ends up in an empty png... this doesn't work as fix...
>>
>>
>>
>> Am 21.02.19 um 08:35 schrieb Peter Dähn:
>>
>> Hi there,
>>
>> Download as pdf doesn't work either...
>>
>> This one causes an error...
>>
>> ERROR 02-21 08:28:08.199 o.a.o.w.r.w.AbstractWbPanel:70
>> [0.0-5443-exec-8] - Unexpected error while processing wbAction
>> java.lang.NullPointerException: Name is null
>> at