I want to use Applescript to save image from Wechat. how can I know if the image is loading ready?
if the image is no completely downloaded, the image that I save is unclear, is there any way to get the state of element "image 1 of window 1" is ready to save.
Related
https://code-apj-noida.github.io/home/
I want this type of random lines moving and disappearing in my figma prototype of a website, is it possible to get this?
Yes, It is possible in Figma. I will provide the solution step by step with an example.
Step 01-
First, go to youtube and search "Technology Network Backgrounds" and copy the video URL
Step 02-
Go to savefrom.net and paste your video link into the search bar. Then click Download
Step 03-
After downloading your video and go to ezgif.com and click the video to gif option. Then drag and drop your video file to the space. And click upload.
Next, you will see some settings like start time-end time. Set end time to 10s or 20s and click Convert to GIF. Next, you will see your gif below. Right-click on it and give save as an image. Select your file path and you will see "video.gif" change it to "Video.jpg" and download it as an image.
Step 04 Go to Figma and from the menu select place an image option. Select the jpg image you downloaded before and put it into your frame. After adjustments run the prototype. You will get a playing background on Figma. That is one of the easiest ways.
Here I did this sample landing page for you. Landing Page Sample on
Figma
I'm using the mimo code app for coding. I saved a picture from google in the folder "Saved Pictures". The file name is "generic background". I did the code <="/Saved Pictures/generic background.jpg">. But the image does not show. Instead what shows is a small file. Don't really know how to get the image to show. I did used img src before =, but I need 10 reputations points to post an image even though I was just trying to show the code.
I'm trying to write a script for Gimp that will crop an image, make a circular selection of what's left, invert the selection, and then delete the selection. I have the cropping, selection, and inversion part done, but the deleting is what's getting me.
(removed old code, see update)
That's the code I have. What's confusing me about the gimp-item-delete code is the item. I understand that I need to define my current selection as the item, but I'm not sure how to do this. If someone could explain how to do this, I would greatly appreciate it! Alternatively, if there's an easier way to do what I'm trying to do (but preferably still in a script), please let me know what you think. My knowledge of this coding is pretty limited, so simple explanations are appreciated.
UPDATE/EDIT:
Here's the (full) updated code:
; XML2 Conversation Portrait Preview Crop
(define (script-fu-xml2-convo-preview image layer)
(gimp-image-undo-group-start image)
(gimp-selection-none image)
(gimp-image-resize image 152 152 -280 -496)
(gimp-layer-resize-to-image-size layer)
(gimp-image-select-ellipse image 0 0 0 152 152)
(gimp-selection-invert image)
(gimp-displays-flush)
(gimp-drawable-edit-clear layer)
(gimp-selection-none image)
(gimp-image-undo-group-end image)
)
; populate script registration information
(script-fu-register
"script-fu-xml2-convo-preview"
"XML2 Conversation Portrait Preview Crop"
"Crops the preview window for XML2 conversation portraits."
"BaconWizard17"
"BaconWizard17"
"September 2021"
"*"
SF-IMAGE "Image" 0
SF-DRAWABLE "Layer" 0
)
; register the script within gimp menu
(script-fu-menu-register "script-fu-xml2-convo-preview" "<Image>/Marvel Mods/Skin Previews/XML2 PC")
So when I'm running this script, it appears to just crop it and doesn't delete the inverted circular selection. However, if I interact with the image in any way (click on it, duplicated it, copy/paste it, undo/redo), it will correct itself and show the properly cropped image with the deleted circular corners. When I first run the script, it also shows the incorrect image up at the top where you can pick which image you're working on, but after interacting with the image it will show the correct image. Here's an example:
The starting image that I create from the clipboard with Ctrl+Shift+V (after screenshotting it from the game using PrtScr):
Then, I run the script, which results in this:
At the top of the screen, the image shows up like this (which is the top left 152x152 pixels of the starting image:
How the image looks once I interact with it in any way (clicking on it, copy/pasting it, duplicating it, undoing/redoing the operation):
The thumbnail at the top of the screen after I interact with the image:
Maybe it's getting hung up on something during the operation? I'm not sure. I understand if this issue is unavoidable, but I would prefer to be able to just run the script and move on rather than having to interact with the image to get it to show up correctly. The image does have an alpha layer when it's pasted in.
gimp-item-delete is a memory/object management thing and is rarely used. What you are looking for is gimp-drawable-edit-clear.
Note that it should be done (together with your final gimp-selection-none) before gimp-image-undo-group-end if you want your whole script to be undone by a single Ctrl-Z.
Edit: It appears that your code works, it's just that the display isn't updated to show the result, which is exactly what gimp-display-flush is meant to do, so why is your code calling it before gimp-drawable-edit-clear? gimp-display-flush ought to be about the last thing done by your script.
I am having trouble saving renders to an output file (using Maxscript). I use the following code in my script:
`render camera:$VRayCam002 frame:1 outputfile:"testscript.tif"`
When I run the code, I can see the scene render in the frame buffer, but the saved file, 'testscript.tif' is blank, i.e. the image is all black.
Any ideas what I may be doing wrong?
Thanks,
Figured out the problem. Apparently, while doing things pertaining to the render scene dialog settings in MAXScript, the actual dialog should be closed. See here from MAXScript help documentation.
With the dialog closed, the image saves properly
Also be sure to set
rendSaveFile =true and rendOutputFilename = "whatevername"
I have a png file - black background with list of images and text near these images. Is it possible to write Autoit script to either detect specific icon or title?
This can do what you want: http://www.autoitscript.com/forum/topic/65748-image-search-library/
The download on the first page is broken I think. The real download link is somewhere in the other pages in the thread.