Image Fields In Sitefinity 8.0 - content-management-system

I get the error with Image Fields in Sitefinity 8.0, the solution is I created a module name Project, it has image field, then I set "Upload 1 Image only" for this field.
So after that I go to the module and add the content image just can up 1 image but after I save the image duplicate. Please help me some ideas.

Related

How to add an image to a pdf using Capacitor pdf-generator plugin

I’m using capacitor pdf-generator plugin to create a pdf. I managed to do so as long as the html code is limited to non image tag, code in which I inject some dynamic data by nesting variable using ${ }.
Now, my aim is to bind the src attribute of an ```img`` tag to a variable so that I can change the logo displayed in the created PDF.
Where I fail: what appears on the PDF is a white space with dashed borders (check picture attached). So I guess that the path must be correct because if not it would show the missing icon (issue I went through before I could format correctly the path).
Anyone who already had that trouble?
Finally bypassed this issue by storing the base64 data when selecting a logo and using it directly in the img tag.
<img src="data:image/png;base64,${base64data} " />
You can convert the images to base64 here https://www.base64-image.de/
then add the codes directly to your image tag

Image names from assets catalog is not showing up in auto completion - xcode 12

I am trying to set UIColor from image pattern. But I am unable to access the image set by name in xcode 12.
I saved the image set by "BMW" name. I want If I write BMW it should pre-populate in suggestion and small image of BMW should shown up.
I tried to set like this -
node.geometry?.firstMaterial?.diffuse.contents = #imageLiteral(resourceName: "Earth Day")
But it is showing up as
node image
I got it now.
Although images names are still not pre populating, but we can pick the images from assets by typing #imageLiteral() and double click on it, one popup will open that lets you pick any image from assets.
Use UIImage(named:"BMW") to access the image from your assets folder

CQ5 DAM asset: Not able to create thumbnail at renditions tab

When I upload an image to the DAM and generate renditions, I sometimes find that rendition's thumbnail is not able to be created.
I tried to take a look at http://localhost:4502/etc/workflow/models/dam/update_asset.html but I don't know which step generate the rendition's thumbnails. Is it possible to fix this?
The "Thumbnail creation" process step (part of the http://localhost:4502/cf#/etc/workflow/models/dam/update_asset.html) creates the thumbnail renditions of the uploaded Digital asset in DAM.
Its common to see that the original document does not have a thumbnail displayed in the DAM renditions console. As long as you are able to open up and view the original version of the document and the renditions in their respective consoles in DAM, I think you are good to go!
If you click on the original rendition, the file will open without any issue.
In order to avoid long loading times, if the image is more than 300KB of size then the document icon is shown instead of a full image in case of original rendition. Try uploading a file of less than 300KB in size and you can see the thumbnail in case of original rendition as well.
The rendition is getting generated fine, it is just not displayed on the UI. AEM 6 will be touch UI enabled and in the new UI, you will be able to see the rendition for "original" image as well.

Issue with browse and upload new thumbnail in the template of CQ 5.5

I have provided thumbnail image for my templates. The thumbnail has jcr:content with property as below
name jcr:data
type boolean
value view
On double click view we get a browse option to upload new image from file system. But on selecting an image and clicking "OK" button the window isn't closing, though the new image gets uploaded in the thumbnail. And thus we have to close it either by clicking the "cancel" button or the 'X' (close) button.
Any solution to fix the "OK" issue.
Thanks.
I think this is a bug in CQ, because I have the same problem. I don't think CRXDE Lite can handle uploading an image directly. I would recommend creating a new package with a filter for just that image (/apps/myproject/templates/htmlpage/thumbnail.png). Build the package and then download it. Extract the package and replace the image with the new thumbnail. Rezip the package and upload it to your CQ instance, then click the install button. This workaround will let you update the image.
There is also a way to directly access the JCR filesystem. In Mac OSX I open up Finder and hit CMD-K to connect to the CQ instance directly. Then I can just drop the new image in directly. I'm not sure what environment you're working in, so your mileage with this approach may vary.

Load default image if particular image is not in repository in jasper

I want to load image dynamically in report.
name of image comes from database and in expression i'm creating repo path.
"repo:/images/"+$F{image_name}
But it gives me error if that image is not in repository..
when image is not in repository i want to load some default image instead of error.
How to achieve this??
i tried this but it is not working.
new java.io.File("repo:/images"+$F{image_name}).exists()?"repo:/images"+$F{image_name}:"repo:/images/default_image"
Thanks.