GdPicture error .NET Core in Linux (Ubuntu)

General discussions about GdPicture.NET.
Post Reply
jeanleno
Posts: 5
Joined: Wed Oct 26, 2016 1:03 pm

GdPicture error .NET Core in Linux (Ubuntu)

Post by jeanleno » Wed Dec 04, 2019 1:45 pm

Hi!

I made a test application in .NET Core and it works in Windows, but when I publish to Linux I got this error on GdPicture registration:

Code: Select all

Unable to load shared library 'kernel32' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libkernel32: cannot open shared object file: No such file or directory -    at ᤫ.LoadLibrary(String A_0)
   at ᥥ.ᜀ(Boolean A_0, Boolean A_1)
   at ᡌ.ᜀ(Boolean A_0, Int32 A_1, Boolean A_2)
   at GdPicture14.LicenseManager..ctor()
   at GdPictureThumbnailCore.Program.RegistraGdPicture() in C:\Users\jean.heidemann\source\repos\GdPictureThumbnailCore\GdPictureThumbnailCore\Program.cs:line 4
What am I doing wrong?
I just register GdPicture, load a PDF and create a Thumbnail of it.

This is my full source code

Code: Select all

using GdPicture14;
using System;
using System.Drawing;
using System.IO;

namespace GdPictureThumbnailCore
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {

                Console.WriteLine("DEBUG 1");
                RegistraGdPicture();
                Console.WriteLine("DEBUG 2");
                using (GdPicturePDF gdPdf = new GdPicturePDF())
                {
                    Console.WriteLine("Enter the PDF path");
                    String pdfPath = Console.ReadLine();
                    gdPdf.LoadFromFile(pdfPath, false);
                    Console.WriteLine("DEBUG 4");
                    int thumbId = gdPdf.CreateThumbnailHQ(300, 200, Color.Transparent);
                    gdPdf.CloseDocument();
                    using (GdPictureImaging img = new GdPictureImaging())
                    {
                        Console.WriteLine("Enter the Thumbnail path (JPG)");
                        String thumbPath = Console.ReadLine();
                        img.SaveAsJPEG(thumbId, thumbPath);
                        Console.WriteLine("DEBUG 6");
                        img.ReleaseGdPictureImage(thumbId);
                    }
                }

            } catch (Exception e)
            {
                Console.WriteLine(e.Message + " - " + e.StackTrace);
            }
            Console.WriteLine("THE END");
            Console.ReadKey();
        }

        private static void RegistraGdPicture()
        {
            var key = "MY KEY HERE";
            new LicenseManager().RegisterKEY(key);
        }
    }
}

Hugo
Posts: 227
Joined: Tue Dec 18, 2018 10:09 am

Re: GdPicture error .NET Core in Linux (Ubuntu)

Post by Hugo » Wed Dec 04, 2019 3:12 pm

Hi jeanleno,

GdPicture is only supported in Windows as mentioned here: https://www.gdpicture.com/guides/gdpicture/Ope ... ments.html
This should solve your issue.

If you have any other questions feel free to contact us via ticket or post it in the different subsections of the forum. Any feedback is very much appreciated and we are constantly looking to improve our software. Ticket link: https://orpalis.zendesk.com/hc/en-us/requests/new

finchalex
Posts: 1
Joined: Mon Feb 15, 2021 7:28 pm

Re: GdPicture error .NET Core in Linux (Ubuntu)

Post by finchalex » Mon Feb 15, 2021 7:34 pm

GdPicture.NET runs on Microsoft Windows operating systems family since Windows Vista and Windows Server 2008 in both 32-bit and 64-bit versions.

GdPicture.NET is available as a .NET Framework 4.5 and .NET Core 3.0 assembly.

Both GdPicture.NET versions are compiled using the AnyCPU Platform target.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GdPicture error .NET Core in Linux (Ubuntu)

Post by Loïc » Thu Oct 13, 2022 3:44 pm

Hello Jeanleno,

Great news, Linux support has been introduced in GdPicture 14.2 release.

You will need to update your main GdPicture assembly to GdPicture.NET.14.API.dll

Please refer to the change log: https://www.gdpicture.com/products/version-history/

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest