You are not logged in.

covis

Beginner

  • "covis" started this thread

Posts: 7

Location: Nanjing,China

  • Send private message

1

Wednesday, December 18th 2019, 8:08am

What's the matter when make vtour image suddenly produces a watermark?

Our company's krpano bought the license and registered it. It's always very normal. What's the matter when make vtour image suddenly produces a watermark? Only this case has been found.

Scott Witte

Intermediate

Posts: 299

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

2

Wednesday, December 18th 2019, 5:17pm

You have to add your license to the new KRPano tools exe. Open "krpano Tools.exe." Go to "Settings." Open "Registration Information" and add your registratio key

covis

Beginner

  • "covis" started this thread

Posts: 7

Location: Nanjing,China

  • Send private message

3

Thursday, December 19th 2019, 11:16am

My license has been registered and runs well all the time, but there is a picture with a watermark. I don't know why.

4

Thursday, December 19th 2019, 6:06pm

Have you checked in krpano tools (current version) / settings / registration information, that it says your name, and has at least the box 'krpano License' checked ? Is the droplet you are using the same version and in its correct folder (not sure if this would, but it might affect it) ?

5

Friday, December 20th 2019, 11:39am

Hi,

the krpano license information are stored in the current users home folder.

So when krpano is suddenly unregistered, then either the user has been changed or the krpano data from the home folder has been removed/cleared somehow.

Best regards,
Klaus

covis

Beginner

  • "covis" started this thread

Posts: 7

Location: Nanjing,China

  • Send private message

6

Monday, December 23rd 2019, 10:25am

My project is as follows:

The server is a CentOS 7.4 system. Our server can access the Internet without any restrictions. The back-end service uses the API interface developed by Java. The mobile client user uploads the panorama to the server. The server calls krpano to cut the picture and return the preview URL. None of these exist: krpano is suddenly logged out, the server user is changed, and krpano data is removed/cleared in some way, The problem is that the watermarked image is found now, and the front and back cut of this image are normal. So, what other factors will affect the registration status of krpano?

7

Monday, December 23rd 2019, 10:40am

you have to find out why your server clears the registration / changes the user etc.
maybe call whoami to check if your scripts are executed as another user
sorry... nobody can solve your server problems.

covis

Beginner

  • "covis" started this thread

Posts: 7

Location: Nanjing,China

  • Send private message

8

Thursday, January 2nd 2020, 3:32pm

images with watermark when the license has been registered

Why the krpanotools generates images with watermark when the license has been registered?

I wrote a java demo that using krpano to generate webpages from panoramic images. In this demo, the `krpanotools`' command `makepano` is called in a loop, all images put in a specific directory will be retrieved and processed to html resources that can be browse within browser. The `makepano` command is executed as a shell command and called by Java Runtime in a serial queue.
I tested the demo with a directory that 60 images in it. The demo ran normally and the command works fine. All images were processed to webpages. But I found that there were a few images in tiles folder have watermark! I'm sure the license has been registered, and major of the generated images without watermark can prove this. The demo dealing with 60 images needs about 10 minutes, and I didn't do anything when it was running.
I don't know why images with watermark were generated randomly? Is there any one can help me?

The detail information about the demo execution:
System OS: CentOS 7.4;
krpano version: 1.20.2;
java version: jdk-8u231-linux-x64;
image's dimension: 8000x4000.
command like this: runtime.exec("krpanotools makepano -config=/data/krpano/templates/normal.config /data/img_temp/kr_test/001.jpg"); The command string (exec method's parameter) is generated dynamically with the retrieved image name.
The license was registered with sudo, and the demo was executed with sudo.

the attachment is a jar,command line is $java -jar KRTestTool.jar <image_dir> <kr_home_dir>
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 13.0px 'Helvetica Neue'; color: #000000}

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 13.0px 'Helvetica Neue'; color: #000000}
covis has attached the following file:

9

Tuesday, January 7th 2020, 12:03pm

Watermark occurs randomly.

I executed the making pano command in a shell script loop with 3 seconds sleep interval. And got the same result, every 60 pieces of images will appear one or more images with watermark.
I don't know how to fix the random issue.

Source code

1
2
3
4
5
6
for (( i=10; i<=$max; i++ ))
do
        file_path="workspace/imgs/0$i.jpg"
        krpanotools makepano -config=/krpano/templates/normal.config $file_path
        sleep 3
done

10

Wednesday, January 8th 2020, 11:51am

Hi,

the krpano license information are stored in the current users home folder.

So when krpano is suddenly unregistered, then either the user has been changed or the krpano data from the home folder has been removed/cleared somehow.

Best regards,
Klaus


I found out some new information, any one can help?
After registering the license by root, a new ".krpanolicense" file would be stored in the same directory that tools in. When images with watermark were generated, there would be a ".krpanolicense" file with 0 byte stored in "/root/" directory. I don't know how this happened and how to avoid?

11

Wednesday, January 8th 2020, 12:13pm

try to set the permissions that only root can modify it

12

Wednesday, January 8th 2020, 12:18pm

try to set the permissions that only root can modify it


You say change the "/root/" directory's permission or tools directory?

13

Wednesday, January 8th 2020, 1:10pm

no, just the license file, after it was registered successfully

chown to root, set permissions for others to read-only

(dont know if that works, but that is what i would try)

14

Thursday, January 9th 2020, 8:39am

@indexofrefraction thanks for your reply and suggestions.


After several days testing, I fixed this issue by move the krpano tools folder under user's home directory.

When I put the krpano tools folder under "/" directory of centOS file system, register license with root, call "register show" command by either other users with "sodo" or root directly, the "show" command will return "Not registered." randomly.

But when I put the krpano tools folder under "/home/username/" directory of centOS file system, call "register show" command by the same user of registration operator, the "show" command always return the correct result.

I tested this issue with a simple script:

Source code

1
2
3
4
5
6
7
#! /bin/sh
max=300
for (( i=1; i<=$max; i++ ))
do
        krpanotools register show >> reg_show.txt
        sleep 0.5
done

Similar threads