close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

does Image Resizer work with base64 images

Thread began 6/05/2014 8:47 am by asarcona308398 | Last modified 6/05/2014 12:20 pm by asarcona308398 | 781 views | 3 replies

asarcona308398

does Image Resizer work with base64 images

Hey Guys,

I'm trying to use ajax to update a photo on a page and the base64 image dynamically generated does not seem to re-size even though the image properties give the correct dimensions...

Here is the excerpt:

<input type="file" name="inst_image" id="inst_image" style="background-color:#FFF" onchange="PreviewImage()" />

<script type="text/javascript">

function PreviewImage() {
var oFReader = new FileReader();
oFReader.readAsDataURL(document.getElementById("inst_image").files[0]);

oFReader.onload = function (oFREvent) {
document.getElementById("uploadPreview").src = oFREvent.target.result;
};
};

</script>
<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1401971755331
ob_start();
?>
<img width="176" height="176" id="uploadPreview" title="New Class Image" />
<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "images", "proportion", "", false));
} // End Cached Resized Image: ImageCacheInstance_1401971755331
?><


I am uploading the file ok on update, but the image displayed on screen is skewed.

Also the image properties show....

data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEAYABgAAD/7gAOQWRvYmUAZAAAAAAB...

instead of the extensions folders to the resized image.

I hope you guys have a way to use the extension in this type of application... or would consider including this in future release

Thanks
Let me know
Tony

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...