Giter Site home page Giter Site logo

Comments (4)

rikschennink avatar rikschennink commented on May 29, 2024

See demo for footer example:
https://pqina.github.io/filepond-plugin-image-transform/

Information on adding markup to file items:
https://pqina.nl/filepond/docs/patterns/plugins/image-transform/#adding-markup-to-images

And on what markup is supported:
https://pqina.nl/doka/docs/patterns/api/markup/

from filepond-plugin-image-transform.

coreybrett avatar coreybrett commented on May 29, 2024

I have the following...

fileMetadataObject: {
	'markup': [
		[
			'text', {
				text: 'hello',
				left: 0,
				bottom: 0,
				textAlign: 'left',
				zIndex: 1,
				fontColor: 'rgba(255,255,255,1)',
			},
		],
		[
			'rect', {
				left: 0,
				right: 0,
				bottom: 0,
				height: '5%',
				backgroundColor: 'rgba(0,0,0,.75)'
			},
		],
		[
			'image', {
				right: 0,
				top: 0,
				width: '10%',
				height: '10%',
				src: logo_path,
				fit: 'contain'
			}
		]
	]
},

but the text is not getting rendered.

The rectangle and the logo are.

from filepond-plugin-image-transform.

coreybrett avatar coreybrett commented on May 29, 2024
'text', {
	text: ajaxitemnum,
	left: '10px',
	top: '20px',
	textAlign: 'left',
	zIndex: 1,
	fontColor: 'rgba(0,0,0,1)',
	fontWeight: 'normal',
	fontFamily: 'sans-serif',
	fontSize: '24px',
},

Got it working using the above.

Is there anyway to make the size of the text proportional to the image? (like width and height do for images)

from filepond-plugin-image-transform.

rikschennink avatar rikschennink commented on May 29, 2024

I believe you can use percentages or fractions for text as well.

from filepond-plugin-image-transform.

Related Issues (20)

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.