Image Surfer Pro User Manual

Understanding How Segments Merge

Every time new URL references are added to a fusker collection by any automated process fusker trees are merged. This includes anytime the Process Page button from Image Surfer Pro toolbar button is used, any time the URL Capture Bar is used, and anytime you choose Merge from the File Operations menu.

Merging starts at the top of the fusker tree with the Collection segment and works its way down each branch of the tree from top to bottom in order, pairing segments which fall at the same level on the same branch of the tree.

The merger process consists of 3 steps taken at each segment level:

  1. Decide if segments should be compared
  2. Match up the level of "Roll Up"
  3. Determine if segment information can be merged
  4. Absorb child segments

Decide If Segments Should Be Compared

In general segments are compared against other segments at the same location within the fusker tree. Segments from one branch are never compared against segments from another branch in the tree. However, during the merger of a fusker collection file an additional step is taken in deciding to compare segments. This step is not performed if the merger is due to processing a webpage or using the URL Capture Bar.

Disabling the {Remove duplicates from incoming collection} user configuration allows you to speed up merger processing by not comparing segments from a merging fusker collection file with other segments which came from that file. Before the file merger is begun, each segment within the fusker tree is marked as pre-existing in the tree. During the merger process if a segment branch does not match and is added to the collection directly from the incoming file, it will not have this mark. When a segment without this mark is asked to evaluate merger with an additional incoming segment, this new segment will evaluate the merger if this configuration is enabled and will immediately reject the merger prior to any other processing if the configuration is disabled.

This can significantly reduce the number of comparisons made if the fusker collection file contained a large fusker tree or directories with a large number of subdirectories or files. However, it means that any duplication of URL paths in the file will not be removed and will exist in the new collection (unless they duplicate something within the current fusker tree). In most cases, the change in merger speed may not be noticeable.

Whether of not you wish to enable this user configuration depends upon the types of fusker collection files you are merging and how they were constructed. There are multiple reasons the same file path may be duplicated in a fusker collection. Files may be duplicated simply to group the same media file with different sets of other files or two duplicate paths may also exist which contain very different file segments, etc. If you do not wish to preserve these existing duplicated structures you can enable this configuration and they will be merged together as the incoming file is processed.

Matching The Roll Up

Before we can determine if two segments can merge, we must first make sure they contain information about a similar portion of the fusker tree. To do this we need to match the number of directory branches contained in each segment. It may be necessary to Split or Roll Up in order to make an accurate comparison. This is done by counting the number of directory markers (i.e. "/") present in both segments then causing the new segment to either split or roll up the correct number of times to match the number of "/" markers.

The structure of the fusker tree being merged to the existing fusker tree is changed by this process. which makes the merger process Directional. If you merge two fusker collection files the result may be different based on which file is loaded first and which file is merged.

An example of the directionality of the merger process can be seen in how the following trees would merge.

Generic Examples of matching the Roll Up level
In our first example our loaded tree does not have any split directories. The tree we wish to merge into our current tree has split the directory 3D_Model02 between 3D_ and Model02. Matching the Roll Up of the second tree to the first tree will roll up the split directory to create a directory segment 3D_Model02. Once this is done it is determined the directories do not match and a new branch of the tree is created.
Existing Tree Merging Three Resulting Tree
Example tree with no split directories Example tree with split directories Result tree of tree #2 merged to tree #1
If we reverse the order of the two collection files and merge the tree with no split directory into the tree which does have a split directory, we see a different result. In this case the directory 3D_Model01 is split in order to match the split directory 3D_. The remaining portion of the directory (Model01) doesn't match an existing branch of the split direcotry so is absorbed as a new branch below the split directory.
Existing Tree Merging Three Resulting Tree
Example tree with split directories Example tree with no split directories Result tree of tree #1 merged to tree #2

This may seem quite complex, but in most cases you will find the results are actually quite intuitive. It may still be possible to create tree branches where the merger can't reconcile the roll up levels - in which case the two tree structures may both exist in some form within the merged tree even if a human could have made a better merger of the trees. In such cases you can manually manipulate the trees to have the structure you wish.

Forced Splitting

In general a Split Directory will have no directory markers unless it was manually manipulated after splitting. The result of matching the rollup of an incoming segment to a split directory can be one of three types of segments: Directory, File, or Split Directory. In the case of a URL from processing a webpage or the URL Capture Bar the result will always be either a directory or file segment.

The use of the {Force split segments based on string size} configuration can be used to modify the incoming segment after the rollup to force the incoming segment to be a split directory. The incoming segment will be split at the same number of characters present in the existing split segment. This splitting is essentially the same process that would have been used if the incoming directory matched the split directory, however since the directory is split before comparison, even if it does not match it will remain split.

Example fusker collection tree with split directory Consider for example the fusker collection with a Split Directory segment 5281. When a new URL: http://www.studio.com/directory/models/290/previews/5221v1_1280x720.mp4 is merged into this collection the MP4 video file segment 5221v1_1280x720.mp4 will be compared to the split directory 5281. These segments are said to "Not Match" because the characters 5281 are not found at the beginning of the video text.
Example fusker collection tree with split directory If {Force split segments based on string size} is enabled, the video segment will be split after four characters (length of text in the split directory 5281} and the new collection will have two split directories (5281 and 5221) under the previews directory segment.
Example fusker collection tree with split directory However, if {Force split segments based on string size} is NOT enabled, the video segment will not be split, and the previews directory segment will now contain both the original split directory and the new video segment.

The forced split will only occur if the incoming segment has enough characters to properly form the split. If the original split directory was only one of several segments at the same level and branch of the fusker tree, the rollup and force split functions are performed for each comparison made. If the incoming segment does not match any of the sibling segments, the final form will most closely match the last of the sibling segments.

While the {Force split segments based on string size} configuration can clearly be useful in some situations it may also split segments in undesirable ways if the URL paths at this point of the tree branch are not very uniform in construction.

Determining A Merger

While the general merge process is similar for each segment type, they all behave slightly differently and will combine with only segments of a similar type. If the information in the merging segment can not be combined with the existing segment the segment is passed back up to the parent for comparison with other branches or absorption. The following table describes which segment types will combine.

Segment Type Can Merge With Condition Result
Collection Collection Always You choose which set of data to keep, the merging tree branches are absorbed
Path Paths Only if both text and protocol match Exact matches combine the lower branches
Directory Directories One segment must contain completely and exactly the other segment's information. The most complete set of information is retained and the child segments of the merging tree are absorbed. If one or both of the segments are fusked, the larger fusk is maintained

The directory or split directory which matches the most characters of the merging segment will be chosen as the "best" match. This allows identical matching regardless of the order of the segments in the current fusker collection.
Split Directory Split Dir
Directories
Files
The information in the existing segment must be completely contained in the merging segment. There may also be additional information in the merging segment which can be used to form a child segment. The most complete set of information is retained. If one or both segments are fusked, the larger fusk is retained. Any additional information contained in the merging segment will be used to form a child segment for absorption.

The directory or split directory which matches the most characters of the merging segment will be chosen as the "best" match. This allows identical matching regardless of the order of the segments in the current fusker collection.
File Files of same type File Segments combine only with other files of the same type (Images with Images etc.). Files combine based on the {Auto combine individual files into fusked files} User Configuration for their file type. If this configuration is enabled, individual file segments will be combined into an optimized fusked file segment. Otherwise individual files will be listed individually under the same directory or split directory segment.

When file segments are merged because the {Auto combine individual files into fusked files} configuration is enabled, the entire text (both filename and extension) of each file referenced by both segments is first formed into a single list fusk. During the formation of the list fusk, duplicates are removed and what remains is a list of each file at the destination path referenced by both of the original file segments. The Optimization Process is then applied to the newly created fusked segment.

There are four {Auto combine individual files into fusked files} configurations in the User Preferences. Each applies to a specific group of segment types:

Configuration Applies To
{Auto combine individual Images into fusked Images} Image Surfer Pro Image file icon
{Auto combine individual Videos into fusked Videos} Image Surfer Pro MP4 Video file icon Image Surfer Pro Flash Video file icon Image Surfer Pro Windows Media file icon
{Auto combine individual Frames into fusked Frames} Image Surfer Pro Shockwave icon Image Surfer Pro Raw Frame icon
{Auto combine individual Pages files into fusked Pages} Image Surfer Pro Page icon

When file segments with Poster Image or Text Description fields merge, the resulting segment will have only one of the two fields. If the existing segment already had the field, that text will remain. If not, the text (if any) of the merging segment will be used.

When file segments with Segment Sizing information merge, the sizing information from the segment already in the fusker collection will be used in all cases.

Absorbing Child Branches

The process of absorbing the child branches of the merging segment is an iterative and recursive process. This means we will ask each of our child branches if it could merge with each of the child branches of the segment we merged with. Each child responds with how well it could merge with each of the incoming children and the "Best" matches are made. Once one of our child segments is combined with the information from the merging segment's child, the process will continue down the tree as the next level of child segments are matched up.

Each of our child branches will be given the opportunity to combine with a child branch of the merging segment. The quality of matches is determined by the number of matching characters such that the order of the segments in each tree will not matter unless there are duplicate segments in the existing fusker collection - in which case the first of the duplicates will always be chosen.

Things to Consider

In most cases merging will lead to the expected results, but there are a few things that can lead to rather confusing results. While each of the following items are all valid and the results of their merging quite deterministic, the combination of the two may not be as intuitive as for more standard practices. In general the following situations can only occur through manual manipulation of the fusker tree. As they are manual changes to segments, they by definition are attempting to exploit patterns in the directory structure of servers. These manual manipulations may sometimes cause situations where merging additional files into the tree may not produce the desired result. In order to accurately add additional files into such manually generated fusking constructs may require additional manual manipulations.

Related User Preferences:

Image of User Preferences Dialog with the General tab selected - nothing highlighted Image of User Preferences Dialog with the Processing tab selected - Merger configurations highlighted Image of User Preferences Dialog with the Processing tab selected - nothing highlighted Image of User Preferences Dialog with the Views tab selected - nothing highlighted
Image of User Preferences Dialog with the Images tab selected - Auto combine files highlighted Image of User Preferences Dialog with the Videos tab selected - Auto combine files highlighted Image of User Preferences Dialog with the Frames tab selected - Auto combine files highlighted Image of User Preferences Dialog with the Pages tab selected - Auto combine files highlighted


Processing Tab: Structure Propagation
When incoming directory or file segments are compared to a split directory segment in the current fusker collection, if the URL text of the split directory matches, the incoming segment will be split during the matching process. However, if the text does not match, the user configuration {Force split segments based on string size} is used. The incoming segment will remain unsplit if the configuration is not enabled and will split after the same number of characters as the existing segment if it is enabled.

Processing Tab: Merger Processing
When you merge an fusker collection from a file into your existing fusker collection, each path through the fusker tree is considered in the order they are found in the file. As these comparisons are made, if the path from the file does not match a path in the existing fusker collection, the segments that make up that branch of the tree are added to the existing fusker collection. Each new path added in this way grows the list of paths the remaining data from the file must be compared to... Unless the {Remove duplicates from incoming collection} preference is turned off. When this configuration is disabled, merging files will go quicker, but if the incoming file had duplicate paths already in it, they may remain after the merger. This configuration effects file mergers only, and is not considered while merging newly found paths from processed webpages.

Images Tab: Auto Optimize: If the {Auto combine individual Images into fusked images} configuration is checked, any images being added to the same directory in the fusker collection will be grouped into a fusked file. The form of the fusked file will be optimized and may be either a list or numeric fusk. NOTE: this will only combine image segments from the merging collection. If your existing collection already has individual image segments separated in directories those will not be combined.

Videos Tab: Auto Optimize
If the {Auto combine individual Videos into fusked Videos} configuration is checked, any videos being added to the same directory in the fusker collection will be grouped into a fusked file with other videos. The form of the fusked file will be optimized and may be either a list or numeric fusk. NOTE: this will only combine video segments from the merging collection. If your existing collection already has individual video segments separated in directories those will not be combined.

Frames Tab: Auto Optimize
If the {Auto combine individual Frames into fusked Frames} configuration is checked, any frame information being added to the same directory in the fusker collection will be grouped into a fusked file with other frames. The form of the fusked file will be optimized and may be either a list or numeric fusk. NOTE: this will only combine frame segments from the merging collection. If your existing collection already has individual frame segments separated in directories those will not be combined.

Pages Tab: Auto Optimize
If the {Auto combine individual Pages into fusked Pages} configuration is checked, any page URL being added to the same directory in the fusker collection will be grouped into a fusked file with other pages. The form of the fusked file will be optimized and may be either a list or numeric fusk. NOTE: this will only combine frame segments from the merging collection. If your existing collection already has individual frame segments separated in directories those will not be combined.

Differences in Free and Full Versions

Screen capture of free version limitation dialog Merge:
The Free Version of Image Surfer Pro does not support the merging of fusker collection files. However, with each use of the Process Page button from Image Surfer Pro toolbar button or URL Capture Bar a new tree is formed from the associated URL(s) and the new fusker tree is then merged into the existing tree.

Screen Capture Examples

Sample screen capture after Processing the Page

The following examples may be of use in understanding how fusker trees are formed when adding a URL reference to your collection and how the new tree is then merged with your existing fusker tree.