-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Resize and convert #4
Comments
Thank you for your comments. When you want to change the mimeType of the resized image, you can use the following script.
In this script, jpeg image is resized and converted to png. Is my understanding of your comment correct? |
I am confused about where you are saying that would go, this is currently what I have done with your library and what it returns to achieve the functionality I am looking for. The following function returns a boolean to indicate if we were successful or not adding the file to a github repository/branch which we've already authenticated to the repository in an earlier function. The comments in it should indicate a lot about what I am doing. The important part is the part where I use the identification information to check if we have a PNG or not. If we do not, then I use
|
I'm really sorry for my poor English skill. I cannot understand about your reply. Can I ask you about the issue of my library? |
I want a method where I provide a fileId and a width, and an image type and it returns that resized image in that filetype. The |
In your situation, I think that the resized image can be converted. Are there some issues for this flow? |
Issue? No I have it working well, I just wish it was in your library as it
could be utilized a lot easier that way and many others might like it too
…On Fri, Nov 16, 2018 at 5:05 PM Kanshi TANAIKE ***@***.***> wrote:
In your situation, I think that the resized image can be converted. Are
there some issued for this flow?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKeM13GgZsI1ubCH9_B6AhU6O_DiULg3ks5uvzaOgaJpZM4Yhwte>
.
|
You want to propose to include the mimeType conversion to the library. Is my understanding correct? I had thought that there are some bugs in the library. If my understanding is correct, your proposal can be achieved. |
It’s working well for me
…On Fri, Nov 16, 2018 at 5:12 PM Kanshi TANAIKE ***@***.***> wrote:
You want to propose to include the mimeType conversion to the library. Is
my understanding correct? I had thought that there are some bugs in the
library. If my understanding is correct, your proposal can be achieved.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKeM1wdNUJs-K89ZeWP_48ZRZ26uqbCOks5uvzhfgaJpZM4Yhwte>
.
|
Can you give me a time to do? |
No rush, I have my solution working but having less steps definitely would
be nice.
Being able to send in the blob instead of a fileID would also skip steps
too, but that is for some other time
…On Fri, Nov 16, 2018 at 5:16 PM Kanshi TANAIKE ***@***.***> wrote:
Can you give me a time to do?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKeM10kaTRbvlAX5LYANaKwyqPtXpYwYks5uvzlPgaJpZM4Yhwte>
.
|
According to this: https://developers.google.com/apps-script/reference/drive/file#getAs(String)
It appears we can get the blob as a different type. I am wondering if we can make doResize optionally always return the image as a passed in mime-type?
I think it can be used when we first get the blob to convert it or alternatively, to make use of this functionality right before returning the new blob when performing the resize.
The text was updated successfully, but these errors were encountered: