Giter Club home page Giter Club logo

app's Introduction

Pwchin APP

Web App

A cute web app using HTML2Canvas to create Pwchin characters, PNG images rendered from HTML markup.

Rendered image is 350x480px - transparent background.

The app is using SVG as graphic elements (most of them) and throws back the complete edited graphic ready to be saved/downloaded as PNG

PwchiWorld

Pwchi - Name

Reversed first letters of I Have Created a Wonderful PNG - ihcwp / Pwchi

Index

hr

About (story behind)

This web app is a Pwchin character creator.

Initially the concept was to be able to create avatars (at that that time, only the head was available for "editing".

Time passed and... why not push for more, once I've stumbled upon HTML2Canvas (Screenshots with JavaScript) I've seen the potential.

Without any programming skills (I don't have experience in javascript/jquery nor any other programming language) I've started connecting the dots.

SVG graphics were created with Photopea offline version and took me a lot of time.

There are a bunch of things which needs to be addressed but my skills kind of served their purpose up to the end.

In dev console there are no errors, took me a lot time for debugging, searching, finding and implementing a working solution yet I didn't give up because around this I've started to build an entire environment... The Pwchi Word.

So, if you have suggestions and you're willing to dive into further developing or making the source even more accessible, feel free to put your skills at work.

hr

To Do

I'm not exactly an experienced developer but these are developments which needs to be implemented as soon as the project gets the touch of "experience". Feel free to go even further.

  • use of Bootstrap framework
  • change the onclick event with more appropriate functionality
  • add Download button of generated Pwchin rather than using the right-click Save image as...
  • use of json file to hold graphic elements rather than load from CSS (ajax)
  • clean-up source code
  • optimized for touch functionality

hr

Issues

Non responsive and not suitable for mobile devices

hr

Library

hr

License

The license(s) of respective entities apply

hr

Contributors

Pwchiman
Pwchin Creator

๐Ÿ“ข
Pwchiman
ZentasticArts

๐Ÿ’ถ 50
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ
Pwchiman
to be added

๐Ÿ”œ

hr

markdown_github.md | emoji_v5.md

app's People

Contributors

cssmfc avatar

Stargazers

 avatar

Watchers

 avatar

app's Issues

Changing onclick to a more viable function

I've been told that onclick to trigger a function is kind of outdated and doesn't seem to be compatible (or there are issues) with mobile devices so it would be nice to fix this in terms of compatibility and efficiency.

Example:

<button onclick="dxsubmitTxt()">Change Name</button> 

Function:

function dxsubmitTxt() {
	var text1 = $("#myText1").val() || '<br>';
	$("#text1").html(text1);
};

The above example is a function within the Pwchi App allowing to submit the input text into div element. To test go to the app, select the Name tab, Text zone, type text, click the Change Name button to display the text in Preview area.

Bootstrap framework

Well, markup language is hand coded and not exactly with responsiveness in mind so I plan to integrate Bootstrap framework with the web app without messing things up. At least the CSS from Bootstrap.

Download Image button

Well, the Pwchi App doesn't use a Download button needed when Pwchin character is generated. I've tried to add one but it doesn't seem to work (desktop / mobile).
The work around is browser based supported download meaning, right click on top of the generated image and click Save image as...

The solution would be a function to support click and touch functionality to save generated image

Existing code used by the app is:

;(function($){

	$(document).ready(function(){


	var element = $("#dxeditor");
	var getCanvas; // global variable

		$("#btn-Preview-Image").on('click', function () {
			 html2canvas(element, {
			 onrendered: function (canvas) {
					$("#previewImage").append(canvas);
					getCanvas = canvas;
				 }
			 });
		});

		$("#btn-Convert-Html2Image").on('click', function () {

			var imgageData = getCanvas.toDataURL("image/png");
		});

	});
	
})(jQuery);

Using JSON to load graphic elements

The entire project is using a huge amount of graphic elements.
Most of them are SVG, as clean as possible yet for faster rendering, faster image and page load I've heard that a better way to load these resources is via json file using ajax or something like that.
I'm not a developer, next to no skills in programming languages so this particular development and implementation is not something I can work on as fast as I can.
Estimated number of graphics loaded in app page is above 200... basically all images from graphic library

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.