Images didn't display in designer

I have an issue with displaying image in designer

Screenshot_2

also when I double click on image from Images tab gets error
The file has unsupported file type , I tried many .png,.jpg

I reinstalled the software and STILL as is

Hi @esaaco,

That “has an unsupported file type” message will always appear after double-clicking any image. It just means the designer doesn’t have an image editor. It’s a very confusing message, we should rephrase it.

You can often get more error details by doing a preflight (Context > Preflight).

Please note that the root folder for image resources is “images”, so the URL needs to be “images/header_update3.png”. The designer will automatically add “images/” if you drag an image to the editor. I’m just guessing here, but maybe you configured the URL of the image manually and forgot to add “images/”?

I didn’t configured the URL of the image manually
Also when select image no preview for image ?

Are you able to view the JPG image in for example the (Windows) Photos application?

What was the result of the preflight?

at first no, I found the server has no photo viewer and installed windows photo viewer as discussed in this link: How to Enable Photo Viewer on Windows Server - GreenCloud Documentation
and now working like in this image photoviewer

I am sure the problem related to windows server but I can’t find catch it .

No Problems found.

That is odd. Can you please check the designer log to see if it contains any error messages? It can usually be found in C:\Users(username)\Connect\logs\Designer

Found this error in log file

[2023-07-17 12:12:47,558] ERROR [main] com.objectiflune.application.designer.welcome.internal.download.DownloadResources.a(DownloadResources.java) Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
	at java.base/sun.nio.ch.Net.connect0(Native Method)
	at java.base/sun.nio.ch.Net.connect(Unknown Source)
	at java.base/sun.nio.ch.Net.connect(Unknown Source)
	at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source)
	at java.base/java.net.Socket.connect(Unknown Source)
	at java.base/java.net.Socket.connect(Unknown Source)
	at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
	at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
	at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
	at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
	at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
	at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.base/java.net.URL.openStream(Unknown Source)
	at org.apache.commons.io.IOUtils.toString(IOUtils.java:2953)
	at org.apache.commons.io.IOUtils.toString(IOUtils.java:2910)
	at com.objectiflune.application.designer.welcome.internal.download.DownloadResources.a(DownloadResources.java)
	at com.objectiflune.application.designer.welcome.internal.download.DownloadResources.getDownloadFiles(DownloadResources.java)
	at com.objectiflune.application.designer.welcome.intro.p.function(p.java)
	at com.objectiflune.layoutengine.html.embed.e.callJava(e.java)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3640)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:643)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:550)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
	at com.objectiflune.application.Application.start(Application.java)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)

The welcome screen tries to download news articles. That error is to be expected if you don’t have an internet connection, it should not cause issues for local images.

I have no idea why images won’t load and why there are no error details. Perhaps you could try the following as a test:

  • Find the file “greprefs.js” in the Connect installation folder
  • Add the following line at the end:
    pref("plugin.disable", true);
  • Restart the designer

Note: Since that file is under Program Files it requires Administrator rights to edit. You may want to save it somewhere else and copy it over.