Does TideSDK have any image manipulation capabilities? - tidesdk

I can't seem to see any image handling detail on the TideSDK API. Is it possible to do image manipulation?

The TideSDK API itself provides no methods for image manipulation so far. We will upgrade TideSDK to use the latest version of webkit with TideSDK 1.4 in october to give you full HTML5 and CSS3 support, along with the HTML5 Canvas, which you can use for javascript image processing.
Until then, you can try and do image manipulation with PHPs image functions, since in the currently used PHP version, GDlib v 2.0.34 is bundled.
Find the function docs here: http://de.php.net/manual/en/ref.image.php

Related

Can i convert SCORM content into html5 format?

I created the SCORM OF swf content. so how can I convert this SCORM into another SCORM having same content but in HTML5 format?? Is there any direct or Indirect way??
The answer is yes and no.
I am guessing you are using a tool like captivate or articulate to design your courses. The newest Captivate and Articulate content creation tools will output the content in Flash and HTML5.
see: https://vimeo.com/65419715
and here: http://www.articulate.com/support/storyline/viewing-and-tracking-articulate-storyline-content-in-an-lms
I haven't heard of any conversion tools and I think that word throws people off.
SCORM is not tied to Flash but instead more connected to javascript.
This is a related question: Looking for SCORM compliant course example in pure HTML with mp3 without flash
So if you can write javascript, you could also re-create your courses in HTML5.
edit:
There aren't any specific tools for SCORMED FLASH to HTML5 that I know of for the content development industry. There are some tools that would convert FLASH to HTML5 and javascript. You could try this tool: http://www.sothink.com/product/flashdecompiler/
This should work so long as your flash course is not password locked.
You can use Adobe Flash extension called 'Swiffy' so you can export Flash content as HTML5. Later on you can make it SCORM compatible.
edit: up to 2MB if I'm not wrong.

Use native 10.8 scrollbars with TideSDK 1.2.0 RC4?

I finally got TideSDK to work (following this guide, How Do I Get Started on the Legacy 1.2.0.RC4 TideSDK?), but I noticed that within my app, the scroll bars are those from previous versions of OSX. By this I mean the scrollbars look like this:
as opposed to the new scrollbars introduced in OSX 10.7:
This obviously isn't a huge issue, but I'm wondering if there's a fix, or if the fix will be in the much anticipated 1.3.0 release which I'm assuming will rely on the updated WebKit.
1.2.0RC4 is built against sdk10.5. The 1.3.0 is built using sdk10.7 in Xcode that will be upgraded shortly to sdk10.8 (pending a few deprecation warnings to be resolved). User Preferences determine scrollbar characteristics for the OS. The setting consists of the following options:
Automatically based on input device
When scrolling
Always
So the first option will depends on whether you have a trackpad or mouse. For example, with a mouse attached:
The second option provides the result on the second image you have included that is much like iOS:
The scrollbars are not specific to WebKit. In fact, the images above were created from code compiled against the native WebKit that is very much up to date. We will be releasing TideSDK and TideSDK Lite shortly. If you do not need the php, python or ruby language support, you will want TideSDK Lite. TideSDK Lite is also our product for gaining AppStore approval.

Is there a version of wkhtmlto(pdf/image) that supports CSS3 Columns?

I am using both wkhtmltopdf and wkhtmltoimage to generate my preview image and a pdf of a document. The only problem is, I need column support. Getting it to work with Javascript is becoming time consuming and really getting me nowhere.
Is there a build download out that has been built against a version of QT that has CSS3 support? I seem to be having problems finding said build.
With the release of Qt5, QtWebKit is said to have more HTML5 support. You could try building wkhtmltopdf on Qt5, or, if you don't like that, try a trunk-source build of WebKit and use the QMake project files to build. Good luck with that - WebKit is a nightmare to build.
EDIT: Started a Qt5 port of wkhtml2pdf, but apparently it (by default) needs a custom build of WebKit that I don't have the time or skills to do. See https://github.com/antialize/wkhtmltopdf/pull/18 for my work so far.
PhantomJS is built around QtWebKit, which supports CSS3 to some extent. Check this example, which renders PDF (can be easily modified to output PNG):
https://github.com/ariya/phantomjs/blob/master/examples/rasterize.js
To check the support of the CSS3 selector you're interested in, just render the correspondent official test suite page: http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/xhtml/index.html

How would I convert a HTML5 / CSS3 document to PDF?

We're currently generating reports for our web application using html5 / css3, and they look good on screen, but obviously when the user hits print who knows what is going to come out of the printer. So, what I would like to know is what is the best way to convert these reports to PDF for download / printing while maintaining the same visual quality of the on screen reports.
Update 2010-10-26 16:01: We're using both .NET and Perl
The only think I can think of that might work is wkHTMLtoPDF. It's a QT app that sits on top of WebKit to generate its PDF.
The good news is that it even evaluates JS so just about anything goes.
The other good news is that QT is available across a wide selection of platforms. Whatever you might be using, chances are you can use QT.
Try Prince XML, the results are pretty to look at.
If you are using some of the new HTML5 elements like Canvas, then probably even the popular PDF converter wont help you.
I suggest you to put suitable print-friendly version of your CSS. This could be achieved by using media="print" attribute in the <link rel="stylesheet"... tag of a separate CSS file, which is containing the definitions for print version.
Some options (all proprietary):
Aspose.Pdf for .NET: Expensive, very good though.
Winnovative HTML to PDF Converter: I've already use their tool, gets the job done.
ExpertPDF: Another good one.
For open-source alternatives, please see here:
Open Source HTML to PDF Renderer with Full CSS Support
ExpertPdf (www.html-to-pdf.net) supports html5 / css3.
You can try the online demo here:
http://www.html-to-pdf.net/free-online-pdf-converter.aspx
There is a node module html5-to-pdf that works pretty well.
Is free and open source.
It runs on Electron. There are some bugs (for example anchor tags render the hyperlink as well) - but it might be an easy fix.

Is there a summary of differences in rendering/behavior between QtWebKit and Chrome/Safari WebKit?

I wrote a simple Qt application (Windows+Mac) that uses QtWebKit to render
a web site inside a window.
But I already saw differences in layout and behavior between our app and Chrome
(that uses WebKit as well), e.g.:
- different fonts are displayed for the same web page
- an html anchor link with "javascript:someFunction()" is not working
Is there somewhere a summary list of all such differences (not the entire QtWebKit bug list)?
Also: is there a way to use a WebKit version more similar to Chrome in my application?
WebKit requires the drawing functions to be provided by the platform. Chrome uses a different graphics/drawing library: skia and QtWebKit uses Qt as a the drawing engine.they're
Both skia and qt provide their own widgets which are used in drawing.
Differences may come out of different painting system. About javascript... Just asking, but did you enable JavaScript support in your webkit app? I'm not sure if its enabled by default
Chrome uses it's own JavaScript engine, V8, which was a lot faster for some time. However, WebKit have also implemented a very fast engine called SquirrelFish (and the JIT'ed Extreme variant). Which one is faster is debatable - I recalled WebKit's being faster, but the difference is the order of miliseconds and it depends on a lot of factors - in short, they're both just as fast.
You can load the site http://html5test.com/ on your Qt WebView.
m_d->m_webView->setUrl(QUrl("http://html5test.com/"));
*If you are using the sample HTML project from Qt Quick.
This page will give you a score for the browser and detailed list of supported features.
You can also compare with other browsers, which is very useful.

Resources