WIP Image Processing
This commit is contained in:
@@ -68,7 +68,6 @@ function JobsDetailPage({ match, loading, data }) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const test = props => {
|
const test = props => {
|
||||||
// axios.get("http://localhost:5000/test").then(r => console.log("r", r));
|
|
||||||
axios({
|
axios({
|
||||||
url: "/test",
|
url: "/test",
|
||||||
method: "get"
|
method: "get"
|
||||||
@@ -151,10 +150,20 @@ function JobsDetailPage({ match, loading, data }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
const transformFile = props => {
|
const transformFile = file => {
|
||||||
console.log("Transforming file.", props);
|
console.log("Transforming file.", file);
|
||||||
//Make the image smaller here.
|
// Make the image smaller here.
|
||||||
return props;
|
|
||||||
|
const reader = new FileReader();
|
||||||
|
|
||||||
|
reader.onload = e => {
|
||||||
|
console.log(e.target.result);
|
||||||
|
};
|
||||||
|
reader.readAsDataURL(file);
|
||||||
|
|
||||||
|
console.log("reader", reader);
|
||||||
|
|
||||||
|
return file;
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user