Thumbnails need a new home and name!

Hello world. I am trying to figure out two issues im having.
1. i need to have the thumbnails save to a diffrent directory. they now save in the same directorey as the large image in a folder called thumbnails. I need them to save one directory back and in a folder called thumbnais.
2. i need the thumbnails to save without the size being apended. so image_50_50.jpg  should be image.jpg.
Please help a brother out. I have looked throught all the dependent files and scripts i can think of but cant figure out how to make this work or where the code is for me to mod.
Thanks in advance.

Hi Ryan,
while the first "saving to a different directory" issue may be tricky to solve, the other one should be much easier:
1. open the file "includes/tng/triggers/tNG_DynamicThumbnail.class.php" and scroll down to the very last function named Execute()
2. in here you´ll see two instances of the variable $thumbnailName with slightly different values, but which all have the image width and height embedded in the to-be-generated thumbnail name.
Please try with modifying the two variable instances as mentioned next, and please backup the original file first
instance 1
before:
$thumbnailName = $path_info['filename'].'_'.$width.'x'.$height.(isset($path_info['extension'])?'.'.$path_i nfo['extension']:'');
after:
$thumbnailName = $path_info['filename'].(isset($path_info['extension'])?'.'.$path_info['extension']:'');
instance 2
before:
$thumbnailName = $path_info['filename'].'_'.$width.'x'.$height.'_w_'.$hash.(isset($path_info['extension']) ?'.'.$path_info['extension']:'');
after:
$thumbnailName = $path_info['filename'].$hash.(isset($path_info['extension'])?'.'.$path_info['extension']: '');
Cheers,
Günter

Similar Messages

  • Do i need a new SWCV and a business system

    Hi Friends
    Do i need a new SWCV and Business suystem for every scenario .
    Let us say i created one file to iDOC scenario with the same sender and same target system
    and now for the same Sender and Reciever i want to create one more scenario which is again a file to idoc
    So for this do i have to do all the stuff in SLD again.
    Thanks

    No you need not create a new technical and business system. You can use the existing technical and business system defined for the same source and target system. You just need to go to the "Objects" tab in ID and add the business system to your scenario.
    As far as technical and business sytem info:
    SLD is based on the CIM model ( Common Information model)
    this model clasiifies the system in terms of SWC, Product, TS, BS to list down....
    TS--> Technical details of the system likeserver name, IP etc....it mostly identifies the system with it's technically ( this gives option to change the TS in future suupose you change the server or its configuration etc)
    BS---> represents the BS usuage identity suppose youa re using the SAP r/3 clnt 100 is sued for develoment activity 200 for QA here the R/3 palys the TS system and 100 200 plays int he Business system....for that particular business wht'a the role of this system......
    Do award points if you feel your query is answered.
    Thanx
    Ravijeet

  • Ipod touch 4th gen needed a new screen and sleep/wake switch.  So, I replace them.  I was able to get to settings and do "erase all content and settings".  I am not able to totally shut this device off as it keeps restarting after a few seconds.

    Ipod touch 4th gen needed a new screen and sleep/wake switch.  So, I replace them.  I was able to get to settings and do "erase all content and settings".  I am not able to totally shut this device off as it keeps restarting after a few seconds.  I have used itunes to restore and also recover.  Device will actually shut off and stay shut off if I leave it connected to the computer.  The moment I unplug (3 seconds) the apple logo appears, it boots, unlock screen appears, I can unlock and operate normally, unplugged or not.  Just cant get it to completely shut down unplugged.  Any thoughts?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
      - If still not successful that usually indicates a hardware problem. Maybe you installed a bad component or damaged something during the repair/replacement.
    Apple will not help since you worked on the iPod yourself.

  • I need a new phone and ipod, would I be able to use an iPhone as a phone and iPod only and not have to buy the internet data plan?

    I need a new phone and iPod, would I be able to use an iPhone as a phone and iPod, without having to purchase the internet date plan?

    You cannot do this.  iPhones have to be activated with a service plan before any of the features, including the iPod features can be used.

  • I have an iphone 4, and its the first edition... i need a new phone and the latest is the iPhone 5. im wondering if apple will release a new phone soon or should i go with the iphone 5?

    I have an iphone 4, and it's the first edition... I need a new phone and the latest is the iPhone 5. I'm wondering if apple will release a new iphone soon or should i go with the iphone 5?

    No one here would know Apple's plans. But, if past history holds true, expect a new model iPhone sometime between now & the fall.

  • I need a new iphone and I've found a fully refurbished iphone 5. Is it a bad idea to get this phone seeing as they are no longer in production? Will it still get updates?

    I need a new iphone and I've found a fully refurbished iphone 5 for a competitive price. Is it a bad idea to get this phone seeing as they are no longer in production? Will it still get updates?
    Or is it worth buying the iphone 5c?

    Hi I would buy the iPhone 5s look on EBay make sure the ICloud Lock has been removed Get the 32G one buy one with the box and from someone who has good feedback. Also look at Refurbished IPhones on Apple Website. Cheers Brian

  • I need to move home and refresh icons back to the left. I uninstalled Firefox 4 and reinstalled Firefox 6 and the home and refresh icons are still on the left. Help! (I have tendonitis and this makes my wrist move too far.)

    # Question
    i need to move home and refresh icons back to the left. I uninstalled Firefox 4 and reinstalled Firefox 3.6 and the home and refresh icons are still on the right. Help!

    You can right-click on the "Home" button and choose "Customize," then drag all of the icons (including Home and Reload) to where you want them.
    For more detailed instructions, see [[How do I customize the toolbars?]]

  • I just bought the new iphone5 but I cant sync it with my computer. I need to download the latest version of itunes but it wont work. Right now I have itunes 10.6.3 I tried to download but it says I need a newer version and I cant do it.

    For some reason when I go to update my old itunes version (10.6.3) it wont let me get the new itunes11. I need a newer version of itunes but when I go on my computer to download and get things updated it says it has no new updates. I now have a new phone, since my iphone4 broke and I cant use it because everything it outdated and now I don't know how to update anything. It's taking me all day just to get a working phone!!!

    The requirement shoul be on the box the iphone came in.  they are also on the website
    Syncing with iTunes on a Mac or PC requires:
    Mac: OS X v10.6.8 or later
    PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 3 or later
    iTunes 10.7 or later (free download from www.itunes.com/download)"

  • Need to extract faces and names from a multi-portrait high school year book scanned page

         I am responsible for generating individual high school student portraits (5" x 7") from scanned 600 dpi pages of portraits from my high school beacon (year book). There are 16 - 20 black and white portraits per page and there are between 800 and 850 students in my graduating class.
         The end product is taking an estimated 850 portraits from multi- portrait pages and convert them into individual 5" x 7" B&W photos.
         Attached is one of the pages of portraits to experiment with. Other than selecting each individual portrait and pasting it into a new image from the clipboard, I don't know of a faster way to do it. This will nearly take forever.
           Might there be a way to create a grid of selections template that applies to each page and extracts the portraits and names separating them into individual images?
    I couldn't download a sample for some reason. The portraits are arranged 4 wide and 5 down like below table but without the header.  The names are below the faces. If one of you has an idea, I could email the full size image to you.
    Header 1
    Header 2
    Header 3
    Header 4

    Nothing shows up.
    1. Go to www.pixentral.com
    2. Put your cursor in the blank provided for the upload (where it says your image)
    3. Click on the Browse button
    4. When the "Choose File" box pops up, navigate to where your photo is stored, click on your photo file, then at the bottom of the box, click the Open button
    5. It will come back to Pixentral with the path to your photo shown in the blank
    6. Now on the Pixentral screen, click on the Send button
    7. Once your photo is loaded (you'll see it on the Pixentral screen) scroll down to the bottom of the photo where you'll see two lines of text, one that says HTML and one that says Forum
    8. You need to copy all of the text in the box after "Forum"
    9. An easy way to select it is to triple click on the text OR drag your mouse all the way from the first character to the last character of the text
    10. Once it is selected, press Ctrl-C to copy it
    11. Then go to your message on the forum here and paste your link by pressing Ctrl-V

  • New home and new WIFI sluggishness

    I recently moved in with my girlfriend. At my last location, I quit using wifi, was connected directly via ethernet to my cable internet modem. I was also Airport sharing the connection for my kids' iMac.
    Now in her new place (and new wifi), I can connect with full bars via Airport, but many sites do not load the first time. I need to refresh the browser several times to get many sites to load.
    I have turned off the internet connection sharing as well. Is it some type of DNS problem?
    clueless... assuming it has something to do with the move.

    HI greengrass,
    There is no real procedure for you as a customer.  You can place an order for broadband and phoneline simultaneously.  BT will take care of the rest.
    If there a line in the new place then it might need an engineer call out in order to get it up and going but this will be made clear whenever your order is placed. 
    TX
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • I need a new printer and would be grateful for your help

    I'm a freelancer, currently working from home. I have a big old Epson photo printer, but it runs out of ink way too fast and the new cartridges cost a fortune. I don't need to print photos, or high quality images - I just need to print off creative briefs, storyboards etc.
    I'm thinking of an all-in-one device and have done tons of reading online, but am still unsure! I basically want something reliable, not too big, for which I don't have to spend €80 on new ink every couple of months.
    Any tips? Thank you.

    I have three HP AIO PhotoSmart printers that work well with 3rd-party inks. One of black and one for color.

  • What database should i use for a flash application which i need to record score and name for a scoreboard.

    Hi. I wrote down the summary of my project so that you can
    understand and answer me more easily:
    I have to build an application (a little flash game) in which
    I record the number of clicks. I want the player to choose a nick
    at the beginning and when he finishes one or all the four choices
    of target, i want the application to write his nick and final score
    in a database for displaying in a scoreboard (hall of fame). All
    the new entries should be sorted according to the score. If the
    same nick appears again, it's final score will be modified in the
    scoreboard only if is higher then the previous.
    I was thinking of creating a variable for the name that is
    chosen at the beginning and a variable for the score that is
    recorded. When the player finishes the game i want the application
    to write his data in the database, and then to display the
    scoreboard (let's say top 10 players in the database from the
    highest to the lowest score).
    I never did this before so i am asking what database shoud i
    use? I need a programmer to create one for me? Or can flash
    generate the database?
    Is the variable the good way or should I aproach the problem
    by other means? And if a programmer creates a database in MySql is
    that good or he should convert it to XML, or Flash generates the
    XML?
    Thank you.

    I did areal photography one time.  What you have listed would not be on my short list for lenses to take at all.
    Maybe you could supply a little more info of the 50-100mm ?  I am going to guess you have the first version of the Canon EF-S 75-300mm?  It is a faily slow lens but if these two are the only possibility, I'd choose it.
    It and the XTi will work as a mattter of fact I took two XTi's on my flying photo experience.  But I had the fantastic EF 70-200mm.  Another thing, there is NOT a lot of room on these aircraft.
    EOS 1Ds Mk III, EOS 1D Mk IV EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 70-200mm f2.8 L IS II, Sigma 120-300mm f2.8 EX APO
    Photoshop CS6, ACR 8.7, Lightroom 5.7

  • HP Mini 110-3131DX. Hard drive replacement; do I need a new one and where would I get it?

    I dropped my HP Mini 110-3131DX directly on it's spine and ever since it only turns on to show the startup screen and these error messages:
    HARD DISK ERROR
    Please run the hard disk test in system diagnostics.
    Hard Disk 1 (3F1)
    F2  System Diagnostics
    Then, it takes a LONGGGG time to even get me to the right screen to do the test ( I have to restart the computer to be able to renavigate to the screen) and it says Hard Disk test failed. What do I do now? Do I have to put in a new hard drive? Where do I buy my specific new hard drive? I really need some help.
    This question was solved.
    View Solution.

    T4M wrote:
    Yes your HDD has been damaged , so you will have to buy new one.
    Do you know where I could buy one? I've looked online but I can't find one specifically for my model.

  • Assistance needed with new monitor and printing from LR3

    I just purchased a new IPS monitor.  I have calibrated it using the HP Display assistant that came with it.  It is an HP ZR 22w.  I saved my calibration as a preset  - however - this is not appearing as a profile when I try to select it in the print module.  the checkbox for "include display profiles" is ticked.  If I allow the printer to manage - the pictures are much warmer than on the IPS display.  My printer is a canon mg6120 and I am running windows 7.  I would appreciate any assistance that anyone can provide.  Thank you

    I think the "HP Display assistant" is a software tool, is that right? 
    Ideally with Lightroom, you should use a hardware calibration/profiling tool (Spyder, Eye One, Color Munki etc).  In particular, you need a monitor profile that contains colour space information.  I had a look through the HP Display Assistant user manual, and it appears the software does calibration but it probably doesn't put colour space info in the profile.  It'll be better than nothing, but a hardware tool is better. 
    However:
    I saved my calibration as a preset  - however - this is not appearing as a profile when I try to select it in the print module.  the checkbox for "include display profiles" is ticked.  If I allow the printer to manage - the pictures are much warmer than on the IPS display.  My printer is a canon mg6120 and I am running windows 7
    This is not what you want to do!  The profile that the HP Display Assistant creates is for the monitor, and only for the monitor.  It gets the right white point and tone curve for the monitor.  What you need in the profile drop-down in LR print module is a printer profile, not a monitor profile (except on very special circumstances). 
    I'm not familiar with the MG6120, but when I googled "profiles for canon mg6120" I got a lot of hits, so I assume profiles are available.  It's quite likely that some came with the printer driver, and were installed with the printer software.  When you select "profile" in LR print module (you may well have to go to "Other..." to see them all) then there should be profiles for the printer - possible lots of them - one or more for each paper type.  If they're not there, see the Canon documentation (or google it) to find out how to load them.   
    If you can't find any profiles for the printer, then try using sRGB (or probably it's "sRGB IEC...").  Without colour management, your printer will probably expect sRGB images, so this should be roughly right, but a specific profile for the printer is better.  This is one of those very special circumstances when something other than a printer profile (and sRGB isn't a printer profile) may be better than nothing.

  • I need a new Top and Bottom Shell (Underside and Top of the main part of the laptop)

    I can't find the parts I need in partsurfer, though I may have messed up. Any help would be appreciated. On a related note, HP Really needs to improve their issues with the left heinge.

    I've tried the procedure you referenced. I still believe I need to clear all earlier syncing history before I can sync my phone with my laptop. When I tried the procedure you've recommended I couldn't find/recall my old sync key. I went through the process of resetting and creating a new sync key, but that didn't help...

Maybe you are looking for