Need help getting images for blog aggregator

I need help trying to grab images into a blog aggregator...
Here is the code that gets the image.
<!--- Get thumbnail, if exists --->
<cfset content_to_parse = temp_description_full>
<cfinclude template="module_get_images.cfm">
<cfif IsArray(image_array) AND ArrayLen(image_array)>
<cfloop from=1 to=#ArrayLen(image_array)# index="j">
<cfhttp url="#trim(image_array[j].link_url)#"
method="get" throwonerror="No" timeout="15" getasbinary="Auto"
resolveurl="No" />
<cfif IsBinary(cfhttp.filecontent)>
<cfset tmp_filename = "thumbnail_entry_" & GetID.id
& "." & image_array[j].file_type>
<cffile action="WRITE"
file="#ExpandPath(request.base_relative_url &
'/blog_thumbnails/' & variables.tmp_filename)#"
output="#cfhttp.filecontent#">
<cfset thumb_image = request.img.process_image(image_path
= ExpandPath(request.base_relative_url & '/blog_thumbnails/'
& variables.tmp_filename), max_width = 120, max_height = 120,
crop_area = "center")>
<cfimage source="#thumb_image#" action="write"
destination="#ExpandPath(request.base_relative_url &
'/blog_thumbnails/' & variables.tmp_filename)#"
overwrite="yes">
<cfquery name="UpdateEntry"
datasource="#request.data_source#" username="#request.db_un#"
password="#request.db_pw#">
UPDATE aggregated_blog_entry
SET aggregated_blog_entry_thumbnail_image_tx =
'#left(variables.tmp_filename,255)#'
WHERE aggregated_blog_entry_id = #GetID.id#
</cfquery>
<cfbreak>
</cfif>
</cfloop>
</cfif>
---------This is the module_get_images.cfm
code----------------
<cfset start_pos = 1>
<cfset image_array = ArrayNew(1)>
<cfset regex_image = "<img[^>]*>">
<cfset regex_image_url =
"(((https?:|ftp:|gopher:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/&##!;@:=\+~_]+[\-A-Za-z0- 9\/]">
<cfloop condition="1">
<cfset temp_image_pos = REFindNoCase(regex_image,
variables.content_to_parse, start_pos, true)>
<cfif temp_image_pos.pos[1]>
<cfset temp_link =
mid(variables.content_to_parse,temp_image_pos.pos[1],temp_image_pos.len[1])>
<cfset link =
REFindNoCase(regex_image_url,temp_link,1,1)>
<cfif NOT link.pos[1]>
<cfset temp_link_url = "">
<cfelse>
<cfset temp_link_url =
mid(temp_link,link.pos[1],link.len[1])>
</cfif>
<!--- Don't show links to images --->
<cfif len(trim(temp_link_url)) AND
ListFindNoCase("jpg,jpeg,gif,bmp,png",left(ListLast(temp_link_url,"."),3))>
<cfset image_array[ArrayLen(image_array)+1] =
StructNew()>
<cfset image_array[ArrayLen(image_array)].link =
temp_link>
<cfset image_array[ArrayLen(image_array)].link_url =
temp_link_url>
<cfset image_array[ArrayLen(image_array)].file_type =
left(ListLast(temp_link_url,"."),3)>
</cfif>
<cfset start_pos = temp_image_pos.pos[1] + 1>
<cfelse>
<cfbreak>
</cfif>
</cfloop>
This is the type of code it has a hard time getting the image
becuase it doesn't have a regular IMG tag.
<div style="float: left; width: 82px; height: 59px;
overflow: hidden; background: url(
http://pix.crash.net/motorsport/80/388493.jpg);
background-position: center center; background-repeat: no-repeat;
margin: 1px;" onMouseOver="showTipGallery(Stoner, Australian MotoGP
2007);" onMouseOut="clearTip();">
Is there a way to modify this code to make it be able to look
for the backround: url?? I am thinking that woul help it.. It knows
that an image is there.. It just doesn't know what to do with
it.

How difficult is it for you to do a google image search for large images of this subject?
While you appear to be doing this project for an educational endeavour and can get away with mild copyright abuse as "fair use", you probably should not expect the participants in this forum to 1) work for Disney either as a direct employee or as a contractor and 2) offer their copyrighted work for free.
If you really want to impress a teacher and a future employer, you would use your own art. Why dont you create your own movie concept? Suppose you and your classmate are up for the same employment position. Who do you think will get hired if you show work that is not all your own, while your classmate has produced all of his/her own work?

Similar Messages

  • Need help getting ready for print

    I am running Photoshop CS5 on a Mac 10.8.4.
    I have basic photoshop experience. 
    My designer has left me in the lurch at a daedline and I need to get some material to the printer ASAP.
    The design is finished.
    The printer wants all the text outlined and the images embedded then a "high quality PDF" submitted to print.
    Please can someone tell me how to outline text and imbed images. (I know how to savw to PDF).
    Any help would be greatly appreciated.
    Thanks.

    Select a Text Layer and invoke
    Type > Convert to Shape
    to make the text layer a layer with a vector mask.
    As for embedding images if you create the pdf in Photoshop I don’t see the relevance of the request.
    But the settings you choose for Compression and Output are relevant factors.
    Which Color Space does the printer request? (And please don’t say CMYK …)
    What is the Color Space and Color Mode of the file you work on?

  • Need help on image for my business.

    hi. I'm Mike Gambino, admin/founder of my own website called http://gambinoarmy.co.cc/. I've been using macromedia for this stuff but apparently, y'all have better stuff than macromedia and I started using the schools. I have a trial on my computer for 30 days and I have been using it and I need to know how to do something. I see that lots of business owners have images that are linked on their site and it is making me mad that everytime I want to make an image, fireworks will not let me do anything on it.
    there is something I want to do and it is to make an image that shows their signature, if they are online or not, when level their at, how long they have been playing, and so forth. I want to know if someone can help me give me a tutorial on how to make an image with HTML embeded into the image source so I can make it so that it is live and will work like most businesses do.
    since I hardly go on since I'm trying to edit my site still, I would like someone to email me at [email protected] so I can get it right on my computer and I will not have to hunt down this forum post. I'm mostly busy and I'm trying to keep my site running and up to date and it is a busy week for me since I'm trying to do a grand opening of my site since someone hacked my site and edited a lot of things and now I secured it and everything and recovered my lost data.
    please help me.

    gambino90 wrote:
    I wish I had the money too. I can't invest anymore on my site till lots of people come on my site and donate.
    I can't speak to your business model.
    is there even a way to take HTML scripts of PHP scripts, put it in a document and try using a <img src=" " /> code to try making it into an image?
    The wording of that question doesn't even make sense. HTML is not scripting, it isn't programming. It is markup for text display. The image tag is also not programming; it is the markup for HTML that displays an image that has been created and stored.
    For your desired functionality, something could probably be done with PHP and a database, if the person doing the work knew what he or she was doing. In any case, it isn't a Fireworks question. Fireworks creates graphics and it can output some HTML. It is not a programming environment.
    If you want to put the your desired functionality into your site yourself, you first need to learn what HTML is and is not, what it can and can't do. Then, you need to move on to learning a programming language (for example PHP, ColdFusion, Perl, C#/.NET), as well as SQL (the language) and some database expertise. You also will need to learn about securing your database-driven site.
    Good luck!

  • Need help getting Artwork for making quality dvd covers

    Hi Everybody,
    I want to make dvd covers for animated movies. I am currently a student and learning CS4 and want to make a DVD cover of Lion King searching for this Artwork in High-Res if any of the designers in this website have them could u just mail them to me it would be a gr8 help. please try getting them pleasssssee mail them to me at [email protected] A quick view here http://www.movieposterdb.com/poster/891822f6
    I am really sorry if i have posted this in some wrong area.
    thanks

    How difficult is it for you to do a google image search for large images of this subject?
    While you appear to be doing this project for an educational endeavour and can get away with mild copyright abuse as "fair use", you probably should not expect the participants in this forum to 1) work for Disney either as a direct employee or as a contractor and 2) offer their copyrighted work for free.
    If you really want to impress a teacher and a future employer, you would use your own art. Why dont you create your own movie concept? Suppose you and your classmate are up for the same employment position. Who do you think will get hired if you show work that is not all your own, while your classmate has produced all of his/her own work?

  • I need help getting my os x mountain lion to work for my pro tools

    I need help getting my os x mountain lion to work for my pro tools

    Since you provide no details I can do nothing but guess, so perhaps this will help:
    http://avid.force.com/pkb/articles/en_US/how_to/Upgrading-to-Mac-OS-10-8?popup=t rue&NewLang=en&DocType=1080
    http://avid.force.com/pkb/articles/en_US/compatibility/Avid-Software-and-Mac-OS- X-10-8?popup=true&NewLang=en&DocType=1083
    If you continue to have problems, you probably should contact Avid support.
    Regards.

  • I need help getting new authorization codes for digital copies

    I need help getting new authorization codes for digital copies of movies. Can someone help me out?

    There's a lot of results in Google when you search for this but unfortunately refreshing the page doesn't seem to generate a different code anymore. Mine also says already redeemed

  • I need help getting the license number for Adobe Photoshop Elements. However, It doesn't recognize me as an authorized user. Can someone help?

    I need help getting the license number for Adobe Photoshop Elements. However, It doesn't recognize me as an authorized user. Can someone help?@

    I am having the same problem...did you ever fix it?

  • Need help getting new printer hp deskjet 3520 setup for eprint and wireless

    need help getting new printer hp deskjet 23520 stup for eprint and wireless

    Hi Pastorlee7,
    I see that you're having problems setting up your printer.  I would take a look at the document below.
    Hp deskjet 3520
    Let me know how it goes.  

  • I haven't used an Apple computer for years. I need help getting started

    I just bought a mac mini after 20 years using a PC.  I need help getting started.  Any beginning manuals out there?  Thanks.

    New User of Apple wrote:
    I just bought a mac mini after 20 years using a PC.  I need help getting started.  Any beginning manuals out there?  Thanks.
    Welcome back. Do not overlook the Finder and individual application Help menu support. The links provided above are great starter references. With tongue in cheek, they also may not be as current as the OS X release on your mini, so expect some differences.
    Here are a litany of keyboard short-cuts, last updated in June 2012, that may prove selectively beneficial.
    For actions like copy(c), paste(v), cut(x), print(p), and select-all(a), substitute the command key instead of control key.
    If you right click on a file, this menu will seem familiar. Press the option key and notice the menu changes. If you copy a file(s) from this menu, change to the destination and then press option with the right button menu to see copy file(s) changed to move file(s).
    To quickly view a file's contents, left click on the file icon, then press the space bar.
    The native file format for OS X is PDF. Thus, when you choose to print, you also have the option to save as PDF with web links preserved.
    Enjoy your mini.

  • TS1538 i need help because i need help getting my ipod touch to connect to windows vista and

    i need help getting my ipod touch to connect to windows because it keeps saying udb device not recognized and i tr\]ied restarting the settings!!!!!

    Have you tried here:
    iOS: Device not recognized in iTunes for Windows

  • I need help getting itunes on my new computer. old one crashed

    My old computer crashed, I downloaded iTunes on my new computer and need help getting all of my stuff on it that I had. I did 'home share' to see if that worked, and it didnt.
    Also, on my old computer, when I synced my iPad & my husbands iPod, it didnt sync any music or podcasts, no videos-and i went through each category seperately to sync it and it didnt work. So I can't sync my devices to the new iTunes bc not everything is on there that i have purchased.

    It has always been very basic to always maintain a backup copy of your comuter for just this occasion.  Use your backup copy to put everything on the new computer.
    If for some reason you have failed to maintain a backup, not good, then you can redownload some itunes purchases in some countries:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • TS4268 I need help getting my face time and imessage to work.

    I need help getting my face time and imessage to work. It is saying wating for activation. I just got my iphone 5 2 days ago. I have reset it from the phone and from itunes on the computer, made sure I'm attached to wifi.

    The 3 basic troubleshooting steps are these in order: 1. Restart your iphone  2.  Reset your settings/iphone  3.  Restore your iphone.  Since your iphone is only a couple of days old, you should backup your device before restoring.  If you don't have anything on your iphone that you care to lose, then simply restoring without a backup is fine.  A quick reset of pressing the sleep/wake button (top of iphone) and your home button simultaneously and holding it until the silver Apple logo appears. 

  • I need help getting my OS X Mavricks download to work and start downloading but it wont work

    i need help getting my OS X Mavricks download to work and start downloading but it wont work

    Contact http://www.apple.com/support/mac/app-store/contact/. They're responsible for getting this abysmal delivery system to work.

  • My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    My old iMac and OS 10.4 will not accept the New iTunes Version 10 application and I can't get past the screen offering to download iTunes 10.  This is wrong and I need help getting past this situation. Help!

    Sure, you can get around it if you don't need the newest version of iTunes. I still use version 7.5 because the newer versions didn't strike me as offering anything I needed.
    If you do need a version 10-something then you will have to upgrade your operating system to Leopard (fi your computer will support it) at least.  If you need 10.5 for some reason then there's no getting around it, you will have to buy a new computer.

  • I need help getting past the installation error "windows cannot fint TEMP file"

    I need help getting past the installation error "windows cannot find TEMP file"

    Seems like some who have tried two devices on the JMICRON IDE port have had trouble. Try without the hard drive and see if you get that error. If that is the case I would try a PATA to SATA converter for your hard drive and connect it to one of the Intel SATA Ports.
    http://www.newegg.com/Product/Product.aspx?Item=N82E16812107112
    http://www.amazon.com/ADDONICS-IDE-SERIAL-CONVERTER-ADIDESA/dp/B000090169
    http://www.compusa.com/products/product_info.asp?product_code=339900#ts
    http://www.xpcgear.com/ide2sata.html
    http://www.ubuyitdirect.com/-p-1045.html?currency=USD
    http://www.satasite.com/sata-ide-converter.htm
    http://www.pcgears.com/default.aspx?oid=187150
     

Maybe you are looking for

  • Connect 2 Macs w/ Firewire. Not Target disk mode.

    I have a PowerBook and an early 09 iMac 24". I used to connected them via firewire to transfer files. Suddenly... the iMac won't recognize the PowerBook... but the Powerbook will recognize the iMac. Actually, the iMac does recognize the PB, but only

  • How to find and install right java for ECC6 intstallation on AIX5.3

    Hello I wander how to find and install right java for ECC6 intstallation on AIX5.3. I went thruroughly thru note 723909 and underlying 716927, 1008311 and 1039948 notes but I still do not understand. I guess I should logon to IBM site http://www.ibm.

  • TCP/IP communication with LabVIEW Full?

    Hi, I would like to know if the TCP/IP VIs are included with the Base or Full version of LabVIEW? I was looking at the different versions of LV and one of the features of the Pro version is 'Network Communication'. I have done TCP/IP communication a

  • Queue Blocking and File picked Partially Problem ?

    Hi All, The File which is placed in FTP server having more 50000 to 65000 rows . when XI picks the File the Partial Data is processed. In SXMB_MONI if we check the message we are able to see some rows not full Data which was in file. it's also blocki

  • Problem with viewing 2 albums with the same name in Cover flow

    Hi if I have 2 albums with the same name ("The Best of" for example) but of 2 different artists there's a big problem with all idevices like iPhone... So when I go in iPod app and I want to watch all albums in cover flow when I choose one of these 2