Xamarin forms convert png stream to svg string - svg

In my Xamarin Forms app I receive a signature from Xamarin.Controls.SignaturePad.Forms in a Stream and PNG format. I would like to store the signature as SVG in the database.
I looked around in Internet but not able to find a solution. Can anyone help me?
Many thanks!

Related

can't import design in flutter app using api

I want to develop an invitation card maker app in flutter so the issue is that I don't know what kind of data I will need to import from the backend to make my cards editable. i have designed cards in photoshop but I don't know how to make them editable in a mobile app. if anyone has a suggestion please give me your suggestions
I'm glad to be able to help you.
In those cases you do the following:
Receive image to edit.
Use external library made to edit photos (https://pub.dev/packages/image_editor_pro)
Send edited image to the backend and replace the old one.
Hi all I am very happy that I finally found the solution.
So we have to first import the background image from API and load text data on it then we can use flutter packages to edit those texts.
But there is one thing you need to do before you import designs to the mobile app. You will need to have a perfect pixel size of font and background otherwise it will be overlapped.
I have images with dimensions of 3000*5000 so I have used aspect ratio for the responsiveness in every device.
And I have used Figma to design cards so we can get all CSS very fast for every line of text and then I am converting it to JSON using CSS to js converter and js to JSON converters.

JSON Animation exported as Video mpeg

I have a json animation created in AfterEffects, exported with BodyMovin.
https://github.com/bodymovin/bodymovin
Is there any way to take this json file and programmatically transform it in to a video? Basically I am trying to create a JibJab style video, where a user can input a photo of their face and our app will take that face and place it over an animation. I need to transform that animation into a video file that can be saved to the user's phone. Maybe with ffmpeg?
I was able to find free public face tracking software using the Microsoft Face Detection API.
https://code.tutsplus.com/tutorials/how-to-create-a-face-detection-app-with-react-native--cms-26491
We were also able to take individual images, and utilize ffmpeg to generate a video / gift from those images. We went our media up to S3 and utilized an AWS Lambda function to transform media upon upload. It didn't look great, but it kind of worked!
https://github.com/fluent-ffmpeg/node-fluent-ffmpeg

How do I use Azure Media Services to Dynamically Encode Videos to MP4 using Azure Blob

I am currently using Azure Blob to store images, and it works great. For a new product I am working on, we are starting to integrate videos. We decided to use Azure Blob to store our videos, and it works great.
We also are saving meta data to the images and videos, and using the Azure Search Service to index the images, and videos, to allow for ease of searching in the new product.
The new problem we are experiencing is the mass amount of file formats being found for upload, are not playing in all devices, and browsers we need to support.
We looked in to Azure Media Services, and found if we encode the videos as H.264 MP4 SD 16x9 using Azure Media Player, it will work in all devices. However, we are now trying to identify how we can easily, and without adding much more time to the user, have the video converted and bound to our search results, to allow for a download link (original video) and play link (converted video).
If anyone knows of a solution, or has a different conversion service that could help, it would be appreciated.
Thank You!

embedding audio into blogger

In Blogger I am trying to recreate the audio feature used in this web site http://www.talkenglish.com/lessondetails.aspx?ALID=2001 where you click on text and hear the audio (an mp3 file) instantly. When I embed identical code into a Blogger page and click it, it wants to play the mp3 file by kick starting Windows Media Player. I don't want a solution like SoundCloud that creates visible player controls. Can anyone suggest a solution. I am hoping to use it to create an online amateur speech therapy package to support some voluntary work I do in this area.
Thanks
That site is using a file called audioplayer.js. To be honest, I am not exactly sure if that's custom built or not. You can look at the source for that here. You have a bunch of options to get the functionality you're looking for. A couple are below.
You can use SoundManager2 which is a very robust JS Sound plugin.
You can also use HTML5's built in <audio> element. You can read more about that here

Chrome based slideshow app for ChromeCast

I am trying to write a simple chrome app to play a sequence of online pictures on my chromecast device.
I have looked at some examples, but could't find anything which I could tweak around to get the simple behavior i needed. Maybe someone here could help, by providing directions or advise on getting started with developing something like that for chromecast.
UPDATE:
To give you a better idea, about the specifics, let me add some more details to my requirements.
It needs to be controlled from chrome
I want to pass a playlist with 10s-100s of images so it can slide them in circles.
After receiving playlist chromecast device should be able to continue on its own, without continuously asking for next image.
This is actually similar to backdrop feature Google is planning to introduce, but I wanted to write something myself.
Thanks
If you don't want to develop your own Cast receiver, then you can use the media namespace channel and the Styled Media Receiver to display a photo at a time:
https://developers.google.com/cast/docs/styled_receiver
You will have to add the logic to advance from photo to photo in your sender app.
If you are willing to develop your own custom receiver, then you can start with this Cast sample app:
https://github.com/googlecast/CastHelloText-android
It allows you to send messages to a custom receiver. You can use that to send the URLs of the photos and then you can add JavaScript logic in the receiver to play a slideshow.
Just to let you know, I have tried various options and ended up writing custom receiver and Chrome sender applications. This was really straightforward and exactly what I wanted.
See the links above for guidance and also examples here.

Resources