Trying to output gifs thru command line. Boy this is complicated.
Just make it simple, Internet guides! “Convert a file folder of images into a gif”
in your nerd terms (excuse me, got upset and yelling at the computer, last one was a “what the hell is a montage and who needs that?!”)
DIRECTORY read input /folder
output .gif
nobody says this anywhere.
Can’t get gifsicle to work. Going with “Convert” with “imagemagick.”
Quicker question.
What symbol means what?
:
-
~
To read a directory of files, every file in the folder? Or none of those and just
*
?
The 2 I’m looking at that I started with. Then looked for more references on the websites for those downloads.
I think I got to the point where I can make a “myimages.txt” of all the files in a folder, and read that as all input to output the gif. But do I have to input every file in the folder, line by line? Can I skip and read all of them by putting a dash or tilde inbetween the 1st file and last file in the folder?
They are named in order by number. I went back and renamed them, twice over now to make it simple.
Or some guides when I searched “command line basics” now start out with cd to change directory, maybe answering my question on opening command line, what folder am I working in. Or how to get to a folder.
Man, you gotta turn off the HAX filter for this kind of thing.
My go-to for animated GIFs is VirtualDub. You can open Image000.png as if it were a movie file and it will pick up all the sequentially-numbered files. Then you can export as an animated GIF. (And add effects like cropping or resizing in between if you want.)
I have used ImageMagik to do things like add a caption though. It’s all on a different computer, but from a little googling I think I would make a batch file something like
for /f %%f in ('dir /b *.png') do convert %%f -annotate -gravity south @caption.txt out_dir\%%f
(Put it in a batch file so it’s easier to tweak when I inevitably get it wrong the first few times. Put the text in a file instead of passing it on the command line so I can put in things like line breaks.)
I was at it for like 7 hours straight there, but figured it out without direct instructions.
It read every image of the same filetype, after pointing to the right folder to work in = *.jpg
I did do a line by line text file list at first; complete waste of time every time I needed to change 1 thing, doing it 60-100 times, one for each line. Virtual dub GUI would’ve been a godsend, thanks.
But was wondering where the gigantic, 5x bigger than video file gifs from there were coming from. Ease of use = abuse then with no idea how to cut things down and encoding the entire clips. At a huge resolution window, maybe even triple of a youtube embed size.
Due to some curriculum rearrangement I ended up taking an early CS course as a junior. The class used the Fibonacci sequence to demonstrate recursion and then the professor said “now write a function without recursion” intending that we should use a loop. However the other junior in the class and I (who had already taken discreet & combinatorial algebra) jumped to “oh, there’s a closed-form solution for this.” This became extra amusing because the TA, also a junior, had been listening to us, so when the professor asked him to demonstrate the solution he was like “ummm, I don’t remember the formula.”
I was like it can’t be as simple as file-> new project done! But I am not a CS major so I don’t know what process you go through in the software development cycle. What are the steps you go through to start a new project?
It depends on the motivation for starting one, but I would imagine the interviewer is looking for a discussion of problem domain enumeration and planning. Starting a project should only consist of “create a file and start typing” if you’re fooling around or prototyping.
I am currently working on a license plate recognition system, and while is already on the stage where it gets the plates from the pic.
It is getting a good amount of repeated pics and pics that are contained on other pics because the goddamn recursive function doesn’t want to work properly yet.
Sigh…
My guess is that the .Equals function needs to be overriden to work with my objects.
A true programmer thinks in concepts, not language, so nothing is wasted.
Step 1) Understand what the project is meant to do.
Step 2) Draft up Specs with the customer, including every thing the software must be able to do, and have it set before development is started
Step 3) Once you have the specs, determine the best tools/languages to accomplish said goals. What can be reused, and what must be invented from scratch.
Step 4) Divide the project up into modules, and then further break down each module to its smallest piece (like, a single function that it must be able to perform).
Step 5) Put estimates on each module; 1 day, 1 week, 3 weeks, etc.
Step 6) Create a road map, and map out which modules will be worked on in which order to maximize your time; i.e. get a prototype up and running as soon as possible which works end to end with the basic functionality, before you start working on any of the advanced stuff.
Thats a pretty good starting point, I’d think.
I was asked something similar, which was “I need you to make a function that rolls a dice for us. How would you do it?”
The first thing I said was, “Well I’d need to know more information first. How many sides does the dice have? How many dice? Is it customizable, or is it always the same configuration?” My boss basically said thats what he was after, somebody who asks questions and not somebody who just knew to include random.h, initialize the randomizer on the current time as a seed, and pull back a (value % 6) + 1. The key is to really understand what something must do, before you do it. And then be ready to pull your hair out when what it must do changes.
For someone who is about take a harsh uni class in fall learning c++ for the first time with no programming experience, you guys recommend anything to prepare for it?
I can’t disagree with that, more so since both are OO languages. It still feels like an odd choice for the uni to pick Java as the coding language when you have C#. Java is going through a slow death, what are the chances Google ditch Java in the future for Android??