The way I got it to work is by messing around with the quality settings of Cropit and creating a PHP function that reads the base64 string and converts it to an image. into an image that I can use in a php script. The code here is working properly for the plugin but I'm unable to turn the result which looks something like data:image/png base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD. Var imageData = $('#image-cropper').cropit('export') $('#image-cropper').cropit('previewSize', ) Src:'users/'+username+'/profile_picture.jpg' I'm using the Cropit plugin and all I need is an image that I can pass into my php upload script. Selecting a region changes the language and/or content on 've been searching the internet for a while now and cannot find anything that tells me how I turn the result from $('#image-cropper').cropit('export') into an image that PHP can upload to the server. To avoid this, use the project save() method before exporting the Motion Graphics template. If the project is changed since the last time it was saved, After Effects prompts the user to save the project. Users//Library/Application Support/Adobe/Common/Essential Graphics/Ĭ:\Users\\AppData\Roaming\Adobe\Common\Essential Graphics\ If not specified, the file will be saved in the current user's Essential Graphics folder: Optionally specify the path to the folder where the Motion Graphics template file is saved. Use the motionGraphicsTemplateName attribute to set the name. The name in the Essential Graphics panel is used for the file name of the Motion Graphics template for example, My Template.mogrt. CompItem exportAsMotionGraphicsTemplate() method (index).exportAsMotionGraphicsTemplate(doOverWriteFileIfExisting, file_path) Export the composition as a Motion Graphics template. Returns true if the Motion Graphics template is successfully exported, false otherwise.The following example sets the name for the active composition and then returns it as an alert:Īpp. = "My Template" Īlert() The name in the Essential Graphics panel is used for the file name of an exported Motion Graphics template, for example My Template.mogrt. CompItem motionGraphicsTemplateName attribute (index).motionGraphicsTemplateName Read or write the name property in the Essential Graphics panel for the composition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |