Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Size of images NOT uploaded through WP Media function


  #1  
Old Mar 1, 2013, 12:45 AM
Michael4fm's Avatar
Michael4fm
 
38 posts · Nov 2011
Manchester, UK
Am I doing something wrong, or is there an issue with size of images that are not uploaded via the 'media' function on the dashboard?

All of the images I use seem to display 'full size', regardless of any size info I add when using them. I've tried switching to the default theme, and there the images show at the desired size but in Montezuma they always seem to just show or not ... ignoring any manipulation data.
  #2  
Old Mar 1, 2013, 01:03 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by Michael4fm
Am I doing something wrong, or is there an issue with size of images that are not uploaded via the 'media' function on the dashboard?

All of the images I use seem to display 'full size', regardless of any size info I add when using them. I've tried switching to the default theme, and there the images show at the desired size but in Montezuma they always seem to just show or not ... ignoring any manipulation data.
I upload all of mine via FTP, and they all resize. MZ CSS, out of the box, limits <img> to max-width:100%. I add some custom code. Firebug for it and see if any of it helps you. (On the test page, those grey boxes are images.)

Last edited by jerryc; Mar 1, 2013 at 03:06 AM.
  #3  
Old Mar 1, 2013, 04:22 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Jerry, to provide a really helpful answer, you should have share the custom code you used.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 1, 2013 at 04:25 AM.
  #4  
Old Mar 1, 2013, 04:29 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Michael4fm - when you select an image to insert into a post, in WP35+ a sidebar pops up with the image and there is an attachment display section that has a 'size' option - have you used that?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 1, 2013, 08:07 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Michael4fm - I realize now you are not using the media function of WP
1) Why not?
2) how do you point to the image in the the post?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Mar 1, 2013, 08:17 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Quote:
Originally Posted by jerryc
I upload all of mine via FTP, and they all resize.
Are you saying you don't use the WP Media Uploader and if not why not? The images may resize responsively but you still may have to deal with a larger than needed image along with the hassles of using FTP and not being able to select the images directly in WordPress.

@jerryc... Do you have a link to any of your sites, other than the demo, that show how you have used Montezuma?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Mar 1, 2013, 08:52 AM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by lmilesw
@jerryc... Do you have a link to any of your sites, other than the demo, that show how you have used Montezuma?
No, I'm still working on content, and that's in between other things I do. When I have something more up, I'll post the links in showing off. Except for the random images at the top, they'll all be the same basic layout. Also bear in mind, I'm brand new to WP and only using it for pages, not posts.
  #8  
Old Mar 6, 2013, 01:05 PM
Michael4fm's Avatar
Michael4fm
 
38 posts · Nov 2011
Manchester, UK
Sorry all. Forgot to click the "notify me when there are replies" option, and forgot to come back to check till now!

I don't use the WP media function for a few reasons, but mainly because (a) it creates lots of different sizes I don't ever need or use (b) I just find it far easier and quicker to upload images via FTP as I need them (c) I can put them pretty much wherever I like, not be constrained by WP upload strictures. Being really anal, (a) and (c) are quite important to my sanity.

I insert them using straightforward image code - i.e. img src = etc. I can normally get the size I want by giving it either a percentage or a specific height or width. Never had any problems or issues with other themes, including Atahualpa, so thought it a bit strange that I seem to have with this one and wondered why. It's not a 'deal breaker' now I know ... just a bit of a pain sometimes.

@Jerryc: LOL ... took me a while to realise that MZ CSS is Montezuma ... thought you were using some great plugin I needed to find! :-) Hmm. Annoying that it works for you and not for me. I don't usually (want to say 'never', but if I do, I'll need to in five minutes time!) resize to greater than 100%. It's usually the opposite ... need an image I've uploaded to be a bit smaller, so specify 80% or whatever, rather than playing about with the actual size of the image.

Problem is that after you've done a lot of playing, you start to wonder if it's something you've done rather than something with the theme!
  #9  
Old Mar 6, 2013, 01:14 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by Michael4fm
I insert them using straightforward image code - i.e. img src = etc. I can normally get the size I want by giving it either a percentage or a specific height or width. Never had any problems or issues with other themes, including Atahualpa, so thought it a bit strange that I seem to have with this one and wondered why. It's not a 'deal breaker' now I know ... just a bit of a pain sometimes.

@Jerryc: LOL ... took me a while to realise that MZ CSS is Montezuma ... thought you were using some great plugin I needed to find! :-) Hmm. Annoying that it works for you and not for me. I don't usually (want to say 'never', but if I do, I'll need to in five minutes time!) resize to greater than 100%. It's usually the opposite ... need an image I've uploaded to be a bit smaller, so specify 80% or whatever, rather than playing about with the actual size of the image.
I do just what you want, and my code works. Firebug my code and use it.
  #10  
Old Mar 6, 2013, 01:18 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Jerry, why don't you just provde the code so he can try it?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Mar 6, 2013, 01:24 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by juggledad
Jerry, why don't you just provde the code so he can try it?
For starters:
  1. I've seen his posts, and he's pretty tech savvy.

  2. I have a lot of image related css, and I'm not sure exactly what he needs.

  3. If I posted it all, it might overwhelm some newbies, and

  4. I don't have time to dig it all out right now.

Soon, I'll do a thorough post on resizable images. I even have resizable code that works on youtubes.

Last edited by jerryc; Mar 6, 2013 at 01:32 PM.
  #12  
Old Mar 6, 2013, 03:57 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I have not determined the cause but I get the same results.

If I put any size image in the page or post and try to resize with the editor function it makes no difference. I can however add and inline style which will affect the size.
For example
HTML Code:
<img  src="http://mysite.com/wp-content/uploads/2012/06/image.jpg" width="200" height="150" />
will show a full size image which is 640px by 480px instead of a 200px by 150px image but if I use
HTML Code:
<img style="width: 200px;" alt="" src="http://mysite.com/wp-content/uploads/2012/06/image.jpg" />
The image shows at a width of 200px.

Still looking into this.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #13  
Old Mar 6, 2013, 04:12 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by lmilesw
If I put any size image in the page or post and try to resize with the editor function it makes no difference.
To clarify, my code doesn't resize the actual images. It's the appearance of my images that shrink to fit the space allotted on the page (which are all done with percentages, not pixels). If you resize your browser window to a smaller size, my grids shrink and the images in them will also shrink to fit. I think that's what the poster wants to do, too.
  #14  
Old Mar 6, 2013, 04:35 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I don't think what is being asked Jerry. I think the poster wants to be able to resize images as he wants and according to what I found it indeed does not work with the default settings for Montezuma.

If you edit the virtual content.css file and remove the width: auto line all seems to work correctly except for maybe in IE8.
HTML Code:
img { 
    max-width:                 100%; 
    height:                     auto; 
    display:                 block;
    width:                     auto; /* makes IE8 keep aspect ratio, adjusts the height */
}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Last edited by lmilesw; Mar 6, 2013 at 04:39 PM.
  #15  
Old Mar 6, 2013, 05:46 PM
Michael4fm's Avatar
Michael4fm
 
38 posts · Nov 2011
Manchester, UK
Lol I THOUGHT I was pretty tech savvy ... but I don't know what "Firebug" is. I feel a trip to Google coming on! Good to know it isn't just something I've broken! :-)

@Imilessw: Thanks for the tip - didn't know you could resize with "style". I'll try that. Perfect timing as I need to fit four images into a width where they're sized to fit as three :-)
  #16  
Old Mar 6, 2013, 07:06 PM
Michael4fm's Avatar
Michael4fm
 
38 posts · Nov 2011
Manchester, UK
@Imilesw: Thanks ... the elimination of "auto" from content.css did the trick. As a self inflicted punishment I now need to check that all the fiddles I've used before you enlightened me haven't resulted in any weird pages. (Should say any MORE weird pages ... already found one!)

Haven't checked it out in IE6, but if anyone is silly enough to be using that browser they deserve everything they get!! :-)

Bookmarks

Tags
images, montezuma, size



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Most images disappeared from media library anartist Atahualpa 3 Wordpress theme 11 Nov 2, 2012 11:18 AM
Multiple copies of images in media library Mosh Atahualpa 3 Wordpress theme 6 Aug 2, 2012 02:56 PM
[SOLVED] Themes icons are no longer displayed but uploaded images are BTI Atahualpa 3 Wordpress theme 8 Jan 25, 2011 04:09 AM
How to resize uploaded Header images marques82 Header configuration & styling 4 Mar 1, 2010 06:33 PM


All times are GMT -6. The time now is 10:36 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.