Using FilePond and Doka, any way to convert HEIC files to jpg so they can be edited? - filepond

Anyone using filepond and Doka? I'm looking to be able to use heic2any to convert a heic file to jpg after the user selects the file but before the doka editor opens up. Is this possible? Right now users can't edit heic files.
Thanks

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

Downside from renaming WebP to JPG or other?

If I compress and save an image as WebP and then rename the extension as jpg will there be any downsides? This is why I ask:
My blog doesn't support WebP format, however if I rename it to png or jpg it will accept it.
What's the possible downsides on this trick?
As of December 2020, all major browsers support JPEG, but not all fully support WebP [https://caniuse.com/webp]. Users of browsers without WebP support won't see the images when visiting the page, so this might be why your blog platform doesn't accept WebP files.
Another downside: if someone downloads an image, the downloaded file will still have the ".jpg" extension despite being WebP format. Many programs depend on file extensions to know how to open it. They will try to decode it as JPEG, but fail, since the file is WebP.
I just change the name from .webp to .jpg and I have never had a problem. Obviously, you have to set your file manager (File Explorer) to be able to view the file name extensions.

How to open image file using pdftron

I want to load an image file using the pdftron webviewer api.
For pdf files it's working fine but I want to load image files and add annotations to them.
In the user guide there is no information regarding working with images.
Yes, WebViewer can do this out of the box.
There are a number of image formats supported. Here is the breakdown.
PNG, JPEG
Simply pass the image URL to WebViewer initialDoc constructor parameter, or to WebViewer.loadDocument().
If your URL does not have a proper file extension, then you can do the following.
myWebViewer.loadDocument("mydomain/generic_url_to_image", {filename: "input.png"})
This works with both PDFNetJS Lean and Full editions.
TIFF, GIF, BMP
You can utilize the browser's HTML5 canvas to load the images, and then generate PNG/JPG from the HTML5 canvas, and then pass the follow the instructions above.
JP2 or multiple images in one document.
Using PDFNetJS Full edition, which does not come with the standard WebViewer download, you have full control over PDF creation.
PDFNetJS Full Download: http://pdftron.com/downloads/PDFNetJS.zip
Using PDFNetJS Full you would follow the AddImage sample code to construct a PDF with the image(s) in it.
http://pdftron.com/webviewer/pdfnetjs/config.html#file=samples/PDFNet/AddImageTest/AddImageTest.js

Cocoa. Why app's image are changed from png to tiff format in sandbox?

my app's resources are png format,but when I run the app,and open the sandbox's content resources directory,I found that all the images in png format are changed to tiff format,how is it going?
anyone could help me?
Thanks!
This sounds like you have the "Combine High Resolution Artwork" setting set in your project's build settings. With this option set Xcode will automatically combine a standard and #2x image into a single TIFF. See this Apple doc for details.

Blackberry - How to retrieve images from a zip resource file?

I am using eclipse & JDE to develop Blackberry Application. I compressed a folder which has set of images in .jpg and .png formats. Please help me, how to retrieve images form the zipped file?
Thank you.....
I can't see any reason to compress compressed graphic format. Anyway it can't be efficient. It's better to add all images to progect img folder and use them as a resources from code:
Bitmap bmp = Bitmap.getBitmapResource("image.png");

Resources