145 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 1-2 years
LovelessDesign says

Hello,

I have an urgent question, i hope you can help.

I have an image in my theme folder that I want to crop with aq_resize. Isn’t it supported, cause the following code doesn’t work:
$thumbnail_url = get_bloginfo('template_directory').'/images/noimage.png';
$image = aq_resize( $thumbnail_url,300,200,true );
echo '<img src="'.$image.'" alt="" />';

If I echo $thumbnail_url it shows the correct path. but Aqua Resizer outputs an empty img src.

315 posts
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
  • Attended a Community Meetup
  • Exclusive Author
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
SyamilMJ says

You’re not allowed to resize images outside of wp uploads directory folder, for a good reason..

107 posts
  • Exclusive Author
  • Has been a member for 2-3 years
mailmilisku says

This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.

This should be your coding, hence you server the image. It has nothing to do with the plugin..

107 posts
  • Exclusive Author
  • Has been a member for 2-3 years
mailmilisku says


This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.
This should be your coding, hence you server the image. It has nothing to do with the plugin..
I try to use this code :
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full' ); $image = aq_resize( $img_url, 655, 255, true ); ?> <img src="<?php echo $image ?>" width="655" height="255" alt="<?php the_title(); ?>" /> </a>
Only output from feature image post. Would you like to give me a simple solution, ion case user not use feature image? So will display first image in post.
3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says



This is a great plugin. Is it possible to combine feature image or first image in post as the thumbnail?
In case user don’t set up feature image, automatically will use the first post image as thumbnail.
Really appreciate for the simple code here. Thanks in advance.
This should be your coding, hence you server the image. It has nothing to do with the plugin..
I try to use this code :
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<?php 
    $thumb = get_post_thumbnail_id(); 
    $img_url = wp_get_attachment_url( $thumb,'full' ); 
    $image = aq_resize( $img_url, 655, 255, true ); ?>
    <img src="<?php echo $image ?>" width="655" height="255" alt="<?php the_title(); ?>" />
</a>

Only output from feature image post. Would you like to give me a simple solution, ion case user not use feature image? So will display first image in post.

After $img_url, do a check to see if it is empty or not.. If it is empty, just get the other image..

107 posts
  • Exclusive Author
  • Has been a member for 2-3 years
mailmilisku says

Only output from feature image post. Would you like to give me a simple solution, ion case user not use feature image? So will display first image in post.

After $img_url, do a check to see if it is empty or not.. If it is empty, just get the other image..

thanks. RubenBristian
Still confuse to implement your notify. I’m not a coder, just a designer.

3449 posts Ruben Bristian
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 6-7 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 500 and 999 users
+5 more
KrownThemes says

I’m not a coder, just a designer.

Then hire a coder :D

1 post
  • Bought between 50 and 99 items
  • Has been a member for 4-5 years
bradleyscott says

My images are hosted on Amazon S3, is there anyway to use this with Amazon S3?

1731 posts Don't Worry, Be Happy
  • Beta Tester
  • Football Contest Participant/Runner-up
  • Grew a moustache for the Envato Movember competition
  • Elite Author
  • United States
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
+3 more
FinalDestiny says

No, it won’t work with external images

by
by
by
by
by
by