Linux Picture Insert Bug

Linux Picture Insert Bug - Messages

#1 Posted: 10/21/2020 9:08:06 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

If your Insert > Picture > From File, function don't work properly on Linux.
When I add picture file it shows in SMath but when I save-close-reopen it disappears.
Region is there but picture is gone. In a text editor, base64 data is mostly missing too.
Most of image data is neglected and not written.

I have checked this with another user and another machine of mine.

Image Region don't have this issue.

Regards
#2 Posted: 10/21/2020 9:54:36 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Are you saying that your Smath/Linux does not insert image [*.PNG]
from the menu "Insert Picture" from file ...
while this action is all correct Smath/Win 7
Which vice versa is not compatible: Smath => Linux or Linux <= Smath ?
In any instance, it's much better to paste an image from the clipboard,
this way the Smath document is stand alone ... can be shared/doctored.
#3 Posted: 10/21/2020 10:49:10 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Are you saying that your Smath/Linux does not insert image [*.PNG]
from the menu "Insert Picture" from file ...
while this action is all correct Smath/Win 7
Which vice versa is not compatible: Smath => Linux or Linux <= Smath ?
In any instance, it's much better to paste an image from the clipboard,
this way the Smath document is stand alone ... can be shared/doctored.


Yes, insert picture on windows works correct on Linux does not.
Clipboard paste also doesn't work on Linux.
Only image region function properly.


#4 Posted: 10/21/2020 8:04:13 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Yes, insert picture on windows works correct on Linux does not.
Clipboard paste also doesn't work on Linux.


That's what Eric mentioned before ...
i.e: the clipboard operation is Windows,
then not compatible Linux ... Linux problem, not yet isolated/related Smath.
My conclusion ... Jean
#5 Posted: 10/21/2020 9:23:50 PM
Anders or Eric

Anders or Eric

4 likes in 40 posts.

Group: User

Wrote

That's what Eric mentioned before ...
i.e: the clipboard operation is Windows,
then not compatible Linux ... Linux problem, not yet isolated/related Smath.
My conclusion ... Jean



The clipboard problem is inherent to Linux rather than an SMath problem.

I predict that the bug overlord is reporting (broken "Insert Image From File" in Linux) is fixable though. It would be better to have a native SMath way to do this than having to rely on an external tool like Xclip or the one I posted.
#6 Posted: 10/22/2020 12:37:11 AM
Waluyo Adi Siswanto

Waluyo Adi Siswanto

1 likes in 55 posts.

Group: User

Yes, in Ubuntu 20.04, it behaves the same thing.
Lost the image when I open, blank picture region.

Regards, Waluyo

Wrote

If your Insert > Picture > From File, function don't work properly on Linux.
When I add picture file it shows in SMath but when I save-close-reopen it disappears.
Region is there but picture is gone. In a text editor, base64 data is mostly missing too.
Most of image data is neglected and not written.

I have checked this with another user and another machine of mine.

Image Region don't have this issue.

Regards



#7 Posted: 10/22/2020 11:40:33 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

The clipboard problem is inherent to Linux rather than an SMath problem.

I predict that the bug overlord is reporting (broken "Insert Image From File" in Linux) is fixable though. It would be better to have a native SMath way to do this than having to rely on an external tool like Xclip or the one I posted.


Long time ago, I mentioned Smath didn't support copy to clipboard
Was it SS 5346 or SS 6179 ?
Apparently it was fixed. Whatever, it has to be clear that the problem
is SmathLinux from Linux not supporting clipboard paste.

Venturi.sm (5 KiB) downloaded 25 time(s).

VenturiLinux.PNG


#8 Posted: 10/22/2020 12:00:24 PM
Anders or Eric

Anders or Eric

4 likes in 40 posts.

Group: User

Wrote


Long time ago, I mentioned Smath didn't support copy to clipboard
Was it SS 5346 or SS 6179 ?
Apparently it was fixed. Whatever, it has to be clear that the problem
is SmathLinux from Linux not supporting clipboard paste.



Thanks Jean, but that is not correct. This report is that inserting an image from a file on disk doesn't work in Linux. The clipboard issue is a different topic.

Best regards,
Eric
#9 Posted: 10/22/2020 12:25:03 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Long time ago, I mentioned Smath didn't support copy to clipboard
Was it SS 5346 or SS 6179 ?
Apparently it was fixed. Whatever, it has to be clear that the problem
is SmathLinux from Linux not supporting clipboard paste.

Venturi.sm (5 KiB) downloaded 25 time(s).

VenturiLinux.PNG


Dear Jean,

We are not on build 6179 anymore. It was 2016 when it had released. We are on 7579, on Linux 7596 for tryout builds.
A lot of things are fixed on Windows builds since then. And some of them are fixed on Linux too.
But however on Linux there are some bugs which we are affected by now, which are not present on Windows builds.

To make it more clear;
1 - Clipboard paste is a bug on Linux not related specific to SMath.
You can't simply paste if clipboard is an image on Linux. You have to tell OS during paste that clipboard is an image file.
2 - Picture insert is another bug on Linux but related to SMath.
When you insert picture, image data is half written to file in SMath file. This is SMath's bug on Linux.

They are not related, they are different.

Regards.
#10 Posted: 10/22/2020 8:31:30 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Let it go step by step, this first step
Can you in your latest SS copy few math regions and paste in IrfanView.
SS 6179 can't ... Mathcad 8, 11 can for unlimited number of regions ... pages.
If you haven't experimented Venturi as described, sorry but end of it.
#11 Posted: 10/22/2020 10:09:50 PM
Anders or Eric

Anders or Eric

4 likes in 40 posts.

Group: User

Jean,

No offense meant, but insisting on turning this bug report toward a discussion about pasting from the clipboard is a hijack of a good thread. What overlord has reported was something that frustrated me as well, much more so than the other, separate issue of copying and pasting images from the clipboard.

There's a different thread going about the clipboard issue. If you would like to move your questions to that thread I'd be happy to try to help your investigation, but for my own part I'd like to see this thread stay on the topic at hand, as I believe there's more hope of this one being easily solvable.
#12 Posted: 10/22/2020 10:38:38 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Let it go step by step, this first step
Can you in your latest SS copy few math regions and paste in IrfanView.
SS 6179 can't ... Mathcad 8, 11 can for unlimited number of regions ... pages.
If you haven't experimented Venturi as described, sorry but end of it.



Jean, our subject is not copy from SMath paste into Irfanview, MS Paint, etc.
That is not the issue of this subject, this is about Linux > Insert > Picture > From File bug.
Here let me demonstrate it with a video for you to explain it more detailed.

Linux Picture Insert Bug Video

Somehow SMath is not getting full picture data, this is not Linux bug. This is a SMath bug on Linux.

Regards

PS: For your question (not subject of the bug), under windows, answer is YES.
You can copy the venturi image or whole canvas and paste it to Irfanview, MSPaint, Photoshop, Paint.Net, Word, etc. Wherever you want.
Just update your SMath to latest version for full features and please please I beg you, stop torturing us with your way outdated SMath build.
#13 Posted: 10/23/2020 6:49:17 AM
Andrey Ivashov

Andrey Ivashov

2270 likes in 3734 posts.

Group: Super Administrator

New test version prepared: http://smath.com/file/UMobd

  • Loading splash screen layout fixed:
    ss_mono_imp_1.jpg

  • Work with images fixed (save/open files with images, image regions copy/paste, background images)
    ss_mono_imp_2.jpg

  • Dark OS theme supported now (not all toolbox icons are vectorized yet - this is test version);
    ss_mono_imp_3.jpg


Best regards.
3 users liked this post
sergio 10/23/2020 6:52:00 AM, Вячеслав Мезенцев 10/23/2020 9:48:00 AM, overlord 10/23/2020 11:34:00 AM
#14 Posted: 10/23/2020 10:35:04 AM
Anders or Eric

Anders or Eric

4 likes in 40 posts.

Group: User

Hi, it's working for me. Thanks!
#15 Posted: 10/23/2020 11:34:58 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

All is good here, dragging picture from file managers works too.
Thank you Andrey for quick response.
#16 Posted: 10/23/2020 11:42:27 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Just update your SMath to latest version for full features


Not long ago, SS 7959 integration had to be doctored.
Please try that one for the benefit of the Community.

Integrate.PNG
#17 Posted: 10/23/2020 12:15:49 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

Not long ago, SS 7959 integration had to be doctored.
Please try that one for the benefit of the Community.


Your response is not related with now fixed picture insert bug on linux.

However, result is same in build 7579 as 6179.
Even if the results are same and wrong I would use 7579.
New one has more features. And other bugs are fixed as well.

By the way, the calculation you have sent is a Gauss Error Function. erf()
Apparently SMath don't have it yet but you can implement it easily.
Maybe Andrey will add erf() someday, who knows.
I have calculated this on windows. Maple don't work on linux, yet.

Regards

gauss error function.png
#18 Posted: 10/23/2020 9:19:04 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

By the way, the calculation you have sent is a Gauss Error Function. erf()
Apparently SMath don't have it yet but you can implement it easily.
Maybe Andrey will add erf() someday, who knows.


Thanks for checking latest SS
Erf(x) is built-in since at least SS 5346 erf(1) from f(x) menu
erf(x) is a monkey business approximation [Mathematica]
But works well in Smath, presumably all versions.
Cheers ... Jean

Maths erf(x).sm (32 KiB) downloaded 25 time(s).
#19 Posted: 10/23/2020 11:37:53 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

erf() is not built-in to SMath, I have checked.
It is a function of Statistical Tools plugin.
That plugin was not installed on my setup.

I have installed the Statistical Tools plugin to get erf().
It works but still gives "erf() function is not defined" error with maple.
Numeric optimization is causing this when I try to get a numeric result.
However it is calculating the expression and giving the result assigned to a variable, even with numeric optimization.
No issues with symbolic optimization I guess.
Odd behavior.

erf.png
#20 Posted: 10/24/2020 1:22:59 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

2020-10-24_09-22-24.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
sergio 10/24/2020 5:31:00 AM, overlord 10/24/2020 2:49:00 PM
  • New Posts New Posts
  • No New Posts No New Posts