I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link:... (2 Replies)
I am trying to use shellinabox as a terminal emulator. Everything is working except there seems to be no way to simulate an F14 button press in shellinabox. I am already embedding shellinabox in an html page so Im am wondering if there is a way to make an html/js button that will pass F14 to the... (0 Replies)
Hi there..
I need a proper "mutt" command to send a mail with html body and html attachment at a time.
Also if possible let me know the other commands to do this task.
Please help me.. (2 Replies)
Here is what I have so far
#!/bin/bash
while
do
read image
jpegtopnm $image | pnmscale -height 200 | pnmtojpeg > $image-thumb
echo $image-thumb
shift
done
I sorta threw some pseudocode in there to demonstrate what I'm trying to do. . Where I am... (3 Replies)
I tried to find elegant (or at least simple) way to remove all but couple of html tags from html file, but all examples I found dealt with removing all the tags.
The logic of the script would be:
- if there is <li> or <ul> on the line, do nothing (=write same line to output)
- if there is:... (0 Replies)
Hi all:
Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project.
There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues.
Running with... (1 Reply)
Hi,
I need to search and replace references to duplicated images in HTML code. There are several groups of duplicated images, which are visually the same, but with different filenames. I managed to find the duplicated files themselves, but now I need to clean the code too. I have a CSV file with... (9 Replies)
Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies
LEARN ABOUT DEBIAN
tk::animation
Animation(3pm) User Contributed Perl Documentation Animation(3pm)NAME
Tk::Animation - Display sequence of Tk::Photo images
SYNOPSIS
use Tk::Animation
my $img = $widget->Animation('-format' => 'gif', -file => 'somefile.gif');
$img->add_frame(@images);
$img->start_animation;
$img->start_animation( $period );
$img->next_image;
$img->prev_image;
$img->set_image( 0 .. $#frames );
$img->pause_animation;
$img->resume_animation( $period );
$img->fast_forward( $multiplier );
$img->fast_reverse( $multiplier );
$img->stop_animation;
$img->set_disposal_method( $boolean );
DESCRIPTION
In the simple case when "Animation" is passed a GIF89 style GIF with multiple 'frames', it will build an internal array of "Photo" images.
The "add_frame" method adds images to the sequence. It is provided to allow animations to be constructed from separate images. All images
must be "Photo"s and should all be the same size.
"start_animation($period)" then initiates a "repeat" with specified $period to sequence through these images. As for raw "repeat" $period
is in milliseconds, for a 50Hz monitor it should be at least 20ms. If $period is omitted it is determined from the GIF metadata (see
below), or if this is not possible it defaults to 100 milliseconds.
"stop_animation" cancels the "repeat" and resets the image to the first image in the sequence.
For fine-grained control "next_image" and "prev_image" move one frame forward or backward. "set_image" randomly positions the animation to
a particular frame.
"pause_animation" pauses the movie and "resume_animation" continues from the pause point.
"fast_forward" and "fast_reverse" speed through the movie either forwards or backwards. $multiplier specifies how much faster the
animation moves.
If Image::Info is installed, then the repeat period time and disposal method of GIF animations are determined from the GIF metadata
directly. Otherwise the disposal method must be set manually by using "set_disposal_method" (1 for blanking the previous images, 0 for
leaving the previous images as is). The repeat period time may be given in the "start_animation" method.
NOTES
"set_disposal_method" was formerly known as "blank" method, but the naming of this method was a mistake.
If the disposal method is not set correctly, either by "set_disposal_method" or by determining from the GIF metadata, then the following
may happen: By default Animation leaves the previous movie frame in the animation photo. Many times overlaying subsequent frames produces a
composite that looks blurred.
BUGS
This module should not depend on a module which is not declared as a dependency (Image::Info).
The delays between images may vary in a GIF animation. This cannot be handled by this module yet.
The handling of the various disposal methods is not correct.
perl v5.14.2 2010-05-29 Animation(3pm)