Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:38:31+00:00 2026-06-08T19:38:31+00:00

What is the equivalent of this Typoscript in PHP? 10 = IMAGE 10.file{ width

  • 0

What is the equivalent of this Typoscript in PHP?

10 = IMAGE
10.file{
    width = 400
    height = 300
    import = uploads/pics/
    import.field = image
}

I’m guessing there is something in TYPO3 libraries that does the same. I have Imagemagick installed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:38:33+00:00Added an answer on June 8, 2026 at 7:38 pm

    In pi1 class of your ext:

    $mediaArray = explode(',', $row['media']);
    $imgConf = array();
    $imgConf['file'] = 'uploads/media/'.$mediaArray[0];
    $imgConf['altText'] = $row['nav_title']?$row['nav_title']:$row['title'];
    $imgConf['file.'] = $conf['somePreset.']['file.'];
    $image = $this->cObj->IMAGE($imgConf);
    

    in TypoScript template:

    plugin.tx_myext_pi1.somePreset.file {
      maxW = 320
      maxH = 130
    }
    

    You can also set the dimensions directly in PHP by replacing:

    $imgConf['file.'] = $conf['somePreset.']['file.'];
    

    with inline array():

    $imgConf['file.'] = array(
      'maxW' => '320',
      'maxH' => '130',
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can someone give the C# equivalent of this xamle code? <ListBox Width=400 Margin=10 ItemsSource={Binding
I'm wondering what the PHP equivalent to this code is: require zlib foo =
What would be the PHP equivalent of this Perl regex? if (/^([a-z0-9-]+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)$/ and $1
What would be the PHP equivalent to this code, I have tried curl but
I want to do the equivalent of this R script: > csvData <- read.csv(file='/homes/ndeklein/test.csv',
what's the equivalent of this function in javascript: http://php.net/manual/en/function.uniqid.php Basically I need to generate
is there any equivalent to this PHP notation, which changes the original array (be
Looking for the python equivalent of this. http://php.net/extract
I'm looking for the equivalent of this sort of SQL query. SELECT field, count(*)
may i get the jquery-ajax equivalent of this code? thanks <html> <head></head> <body> <?php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.