Error trying to add SVG image to xcode assets - xcode

I have converted an image from PNG to SVG using the vectorizer.io website. The SVG image looks fine when viewed with the Chrome browser and in GIMP. But when I try to add it to the asset folder in xcode (Version 11.4.1) I get this error ...
The SVG file provided for the symbol image set X is not suitable. Symbol image file (null) must have a glyph for regular weight Medium image size.
I have tried opening the file with Inkscape and saving it as various versions of the SVG and PDF, but none seem to be acceptable.
I have not been able work out how to provide that glyph, and whether this is a fault in the SVG file or something I have failed to do in xcode.

Only starting from Xcode 12 you can use SVG.

Related

How to add GIF file in Xcode assets foler?

I'm using Xcode 12.4 and I want to use GIF image in my app.
So I put GIF Image in Assets.xcassets folder.
But UIImage can't recognize the GIF file with this error message
CoreUI: attempting to lookup a named image 'imgname' with a type that is not a data type in the AssetCatalog
When I open Assets.xcassets folder in xcode, the file is represented like above image.
How to solve this error? I use code to get image
UIImage.animatedImage(with: [UIImage(named: "img_name")!], duration: 15.0)
Thank you.
That's because UIImage is not support file in data set.
You must use NSDataAsset to load gif data from data set

Adding Image in Magento Customized PDF (Extension)

I have an extension installed on my Magento in which I customized it to fit the my expectations.
But in my PDF that I customized, I want to place an image where the picture is placed on the media folder only,
The link of my image is like this http://xxxxxxxx.com/ecommerce/media/GlobalPdf/default/img/barcode.jpg
I can open the link onm the browser and it shows the image but when I included it on the XML, it does not show, it shows only a black box with a white X on it.
Am I missing something? I tried placing it on other locations but to no avail.

Siebel open UI IP16 - loading image customization

Is there a way I can customize (replace with another GIF image) the loading image in Siebel Open UI in IP16 version? The current loading image is an red colored, oval shaped, oracle provided one, but i do not find the corresponding image in images folder. Any leads?
The animated icon may be stored in css files.
Try to search in your css files for something like
.siebui-mask-outer
timer
It may not be an actual gif but an css transformation.
(btw. You can run your Chrome Developer tool and examine the source of the icon)
The standard GIF file must be in public/enu folder (for english application) on the web server. On your local installation, it will be in C:\Siebel81\16.0.0.0.0\Client\PUBLIC\IMAGES\
There are multiple gif files there used for different applications.

TFS not showing svg embedded in markdown files

I have some markdown files (.md) in my project, which embed SVG images with the usual ![]() format. When I preview the markdown files in Visual Studio Code, the embedded SVG images are shown correctly.
However, when I try to preview those markdown files in visualstudio.com (TFS-git repository), the images are not shown, although regular bitmaps do. If I right-click the failed images and choose to 'open in another tab or window', the SVGs are shown correctly.
Is there a way to make it work correctly in visualstudio.com?
ADDITIONAL INFORMATION:
Using macOS/Safari, when I open the developer console, the URL returning 404 is mentioned as:
https://{account}.visualstudio.com/{repo}/_git/uml/actors.svg
But, when I right click the missing image and select 'Open image in new tab' it opens:
https://{account}.visualstudio.com/{guid1}/_api/_versioncontrol/itemContent?repositoryId={guid2}&path=%2Fdocs%2Fuml%2Factors.svg&version=GBmaster&contentOnly=true&__v=5
The last link shows the image correctly
TFS Web portal does not support display the svg image in markdown if the svg image is hosted in TFS repository(TFVC&Git), I have help you submit a feature request on VSTS User Voice, you can vote it here: Support displaying the svg image in markdown from webportal.
As a workaround for now, you can place the svg file in a public network path and then use the address in the markdown. For example:
![Alt text](https://css-tricks.com/wp-content/uploads/2015/05/kiwi.svg)

Cannot extract the embedded font - Code Igniter and dompdf

Following the instruction in this link ( https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf ), I always encounter an error when opening the pdf file created. The error message is:"Cannot extract embedded font 'TradeGothicLT-CondEighteen'.Some characters may not display or print correctly. " and when i click OK, the pdf displays black background and when i start highlighting the body, it captures the text but text are in black font-color. what should I do to get rid of this error?
There may be something wrong with your font cache, located at dompdf/lib/fonts/dompdf_font_family_cache.php (though the exact file name depends on your release and whether you have loaded fonts). This file tells dompdf what fonts are available for use in the PDF. If this file references a font that isn't actually available you can run into major issues on viewing. You may need to re-load your font files. Take a look at the Unicode how-to for an overview of using embedded fonts. This document hasn't been updated to reflect changes implemented in dompdf 0.6.0 beta 3, but the information is still pertinent.

Resources