Project

General

Profile

Actions

Bug #49653

closed

Image Resize & typolink in extbase extension in TYPO3 6.1.1

Added by Sejal no-lastname-given over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-07-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
hard
Is Regression:
Sprint Focus:

Description

Hi,

I have a problem with resizing image and making typolink in repository file of extbase extension in typo3 version 6.1.1.

Its already working in the typo3 4.7.7 extbase extension.

I have used below code and its showing me error:
Fatal error: Class 'TYPO3\Profile\Domain\Repository\t3lib_div' not found in repository class file.

$this->cObj = t3lib_div::makeInstance('tslib_cObj');
$imageObj['img']='IMAGE';
$imageObj['img.']['file']= "uploads/tx_download/".$row["image"];
$imageObj['img.']['file.']['width']='80';
$imageObj['img.']['file.']['height']='115';
$imageObj['img.']['file.']['params']='-quality 100';
$image = $this->cObj->IMG_RESOURCE($imageObj['img.']);

Can anyone help me in finding the solution?

Actions

Also available in: Atom PDF