Quick request if possible?

Discussion and feedback on Construct 2

Post » Thu Apr 11, 2013 11:47 pm

@Tom & @Ashley

Would it be a lot of work to add an extra option in project settings for a preview image?

For example, to get a thumbnail to show on facebook etc, I usually manually add the following to the index.html after the <script> element.

    <img src="preview.png" style="height:1px;width:1px" />

And results in this :


JohnnySix2013-04-12 20:56:38
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Fri Apr 12, 2013 10:26 am

Couldnt you make a sprite for that ? Would be more comfortable cause you can easily fill it and play with effects and so on.

Or do I missunderstand something ?
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Fri Apr 12, 2013 12:35 pm

This should be done using Open Graph image meta tags and I think it's assumed that users will be editing the outputted HTML themselves. I'd recommend adding it after the export then ensuring you don't overwrite the index.html file.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Fri Apr 12, 2013 8:52 pm

Edited the original so it's more easily understood!

@Ashley - would something like this be possible?JohnnySix2013-04-12 20:57:57
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sat Apr 13, 2013 8:16 pm

Or is possible for the user to change the template used for the HTML output?
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Apr 14, 2013 1:17 am

I'm not too keen on adding platform specific things to all exporter outputs. I also really want to keep the export totally spartan, since an image on the HTML page itself will take up a bit more memory, not be subject to layout-by-layout texture management, and so on. If you really want this, can't you just edit it in after export?Ashley2013-04-14 01:18:09
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Sun Apr 14, 2013 3:46 am

Thanks for the response, I am changing it after export right now, I was just wondering if the option could be included.

I was hoping editing the HTML file in the exporter folder would add the line,as this would allow some options, that shouldn't affect anything else, for example, to add a couple of open graph things like:


        <meta property="og:image" content="preview.png"/>
        <meta property="og:title" content="New Project"/>



I just did a quick test - open graph works with a local reference and without having to do the 1px image hack.

JohnnySix2013-04-14 03:53:04
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Apr 21, 2013 5:33 am

Or is it possible for a user to modify the HTML exported to create the additional metainfo and save a custom preview/icon etc , or is this part of the Construct binary?

If the former, I'll have a go at making a plug-in instead. JohnnySix2013-04-21 05:33:51
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Wed Apr 24, 2013 3:12 am

I tried editing the index.html and the export.html in the exporter folder, but trying to shoehorn the additional line in didn't work.

Is there another file/template that's referenced, or does this get generated from construct itself?


Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Wed Apr 24, 2013 11:37 am

It always uses the templates in the exporter file, but there are lots of them (e.g. export-fs.html when using a fullscreen-in-browser mode).
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests