GdPicture error .NET Core in Linux (Ubuntu)

General discussions about GdPicture.NET.
Post Reply
Posts: 4
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


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)

                Console.WriteLine("DEBUG 1");
                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);
                    using (GdPictureImaging img = new GdPictureImaging())
                        Console.WriteLine("Enter the Thumbnail path (JPG)");
                        String thumbPath = Console.ReadLine();
                        img.SaveAsJPEG(thumbId, thumbPath);
                        Console.WriteLine("DEBUG 6");

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

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

Posts: 72
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: ... 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:

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests